64 lines
2.6 KiB
Dart
64 lines
2.6 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'demande_aide_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
DemandeAideModel _$DemandeAideModelFromJson(Map<String, dynamic> json) =>
|
|
DemandeAideModel(
|
|
id: json['id'] as String?,
|
|
numeroReference: json['numeroReference'] as String?,
|
|
type: json['type'] as String?,
|
|
titre: json['titre'] as String?,
|
|
description: json['description'] as String?,
|
|
justification: json['justification'] as String?,
|
|
montantDemande: (json['montantDemande'] as num?)?.toDouble(),
|
|
montantAccorde: (json['montantAccorde'] as num?)?.toDouble(),
|
|
statut: json['statut'] as String?,
|
|
urgence: json['urgence'] as String?,
|
|
localisation: json['localisation'] as String?,
|
|
motif: json['motif'] as String?,
|
|
demandeurId: json['demandeurId'] as String?,
|
|
demandeur: json['demandeur'] as String?,
|
|
telephone: json['telephone'] as String?,
|
|
email: json['email'] as String?,
|
|
dateDemande: json['dateDemande'] == null
|
|
? null
|
|
: DateTime.parse(json['dateDemande'] as String),
|
|
dateLimite: json['dateLimite'] == null
|
|
? null
|
|
: DateTime.parse(json['dateLimite'] as String),
|
|
responsableTraitement: json['responsableTraitement'] as String?,
|
|
organisationId: json['organisationId'] as String?,
|
|
dateCreation: json['dateCreation'] == null
|
|
? null
|
|
: DateTime.parse(json['dateCreation'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$DemandeAideModelToJson(DemandeAideModel instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'numeroReference': instance.numeroReference,
|
|
'type': instance.type,
|
|
'titre': instance.titre,
|
|
'description': instance.description,
|
|
'justification': instance.justification,
|
|
'montantDemande': instance.montantDemande,
|
|
'montantAccorde': instance.montantAccorde,
|
|
'statut': instance.statut,
|
|
'urgence': instance.urgence,
|
|
'localisation': instance.localisation,
|
|
'motif': instance.motif,
|
|
'demandeurId': instance.demandeurId,
|
|
'demandeur': instance.demandeur,
|
|
'telephone': instance.telephone,
|
|
'email': instance.email,
|
|
'dateDemande': instance.dateDemande?.toIso8601String(),
|
|
'dateLimite': instance.dateLimite?.toIso8601String(),
|
|
'responsableTraitement': instance.responsableTraitement,
|
|
'organisationId': instance.organisationId,
|
|
'dateCreation': instance.dateCreation?.toIso8601String(),
|
|
};
|