// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'adhesion_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

AdhesionModel _$AdhesionModelFromJson(Map<String, dynamic> json) =>
    AdhesionModel(
      id: json['id'] as String?,
      numeroReference: json['numeroReference'] as String?,
      membreId: json['membreId'] as String?,
      numeroMembre: json['numeroMembre'] as String?,
      nomMembre: json['nomMembre'] as String?,
      emailMembre: json['emailMembre'] as String?,
      organisationId: json['organisationId'] as String?,
      nomOrganisation: json['nomOrganisation'] as String?,
      dateDemande: json['dateDemande'] == null
          ? null
          : DateTime.parse(json['dateDemande'] as String),
      fraisAdhesion: (json['fraisAdhesion'] as num?)?.toDouble(),
      montantPaye: (json['montantPaye'] as num?)?.toDouble(),
      codeDevise: json['codeDevise'] as String?,
      statut: json['statut'] as String?,
      dateApprobation: json['dateApprobation'] == null
          ? null
          : DateTime.parse(json['dateApprobation'] as String),
      datePaiement: json['datePaiement'] == null
          ? null
          : DateTime.parse(json['datePaiement'] as String),
      methodePaiement: json['methodePaiement'] as String?,
      referencePaiement: json['referencePaiement'] as String?,
      motifRejet: json['motifRejet'] as String?,
      observations: json['observations'] as String?,
      approuvePar: json['approuvePar'] as String?,
      dateCreation: json['dateCreation'] == null
          ? null
          : DateTime.parse(json['dateCreation'] as String),
      dateModification: json['dateModification'] == null
          ? null
          : DateTime.parse(json['dateModification'] as String),
    );

Map<String, dynamic> _$AdhesionModelToJson(AdhesionModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'numeroReference': instance.numeroReference,
      'membreId': instance.membreId,
      'numeroMembre': instance.numeroMembre,
      'nomMembre': instance.nomMembre,
      'emailMembre': instance.emailMembre,
      'organisationId': instance.organisationId,
      'nomOrganisation': instance.nomOrganisation,
      'dateDemande': instance.dateDemande?.toIso8601String(),
      'fraisAdhesion': instance.fraisAdhesion,
      'montantPaye': instance.montantPaye,
      'codeDevise': instance.codeDevise,
      'statut': instance.statut,
      'dateApprobation': instance.dateApprobation?.toIso8601String(),
      'datePaiement': instance.datePaiement?.toIso8601String(),
      'methodePaiement': instance.methodePaiement,
      'referencePaiement': instance.referencePaiement,
      'motifRejet': instance.motifRejet,
      'observations': instance.observations,
      'approuvePar': instance.approuvePar,
      'dateCreation': instance.dateCreation?.toIso8601String(),
      'dateModification': instance.dateModification?.toIso8601String(),
    };
