111 lines
4.5 KiB
Dart
111 lines
4.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'cotisation_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
CotisationModel _$CotisationModelFromJson(Map<String, dynamic> json) =>
|
|
CotisationModel(
|
|
id: json['id'] as String?,
|
|
membreId: json['membreId'] as String,
|
|
membreNom: json['membreNom'] as String?,
|
|
membrePrenom: json['membrePrenom'] as String?,
|
|
organisationId: json['organisationId'] as String?,
|
|
organisationNom: json['organisationNom'] as String?,
|
|
type: $enumDecodeNullable(_$TypeCotisationEnumMap, json['type']) ??
|
|
TypeCotisation.annuelle,
|
|
statut: $enumDecodeNullable(_$StatutCotisationEnumMap, json['statut']) ??
|
|
StatutCotisation.nonPayee,
|
|
montant: (json['montant'] as num).toDouble(),
|
|
montantPaye: (json['montantPaye'] as num?)?.toDouble(),
|
|
devise: json['devise'] as String? ?? 'XOF',
|
|
dateEcheance: DateTime.parse(json['dateEcheance'] as String),
|
|
datePaiement: json['datePaiement'] == null
|
|
? null
|
|
: DateTime.parse(json['datePaiement'] as String),
|
|
dateRappel: json['dateRappel'] == null
|
|
? null
|
|
: DateTime.parse(json['dateRappel'] as String),
|
|
methodePaiement: $enumDecodeNullable(
|
|
_$MethodePaiementEnumMap, json['methodePaiement']),
|
|
numeroPaiement: json['numeroPaiement'] as String?,
|
|
referencePaiement: json['referencePaiement'] as String?,
|
|
annee: (json['annee'] as num).toInt(),
|
|
mois: (json['mois'] as num?)?.toInt(),
|
|
trimestre: (json['trimestre'] as num?)?.toInt(),
|
|
semestre: (json['semestre'] as num?)?.toInt(),
|
|
description: json['description'] as String?,
|
|
notes: json['notes'] as String?,
|
|
recu: json['recu'] as String?,
|
|
dateCreation: json['dateCreation'] == null
|
|
? null
|
|
: DateTime.parse(json['dateCreation'] as String),
|
|
dateModification: json['dateModification'] == null
|
|
? null
|
|
: DateTime.parse(json['dateModification'] as String),
|
|
creeParId: json['creeParId'] as String?,
|
|
modifieParId: json['modifieParId'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$CotisationModelToJson(CotisationModel instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'membreId': instance.membreId,
|
|
'membreNom': instance.membreNom,
|
|
'membrePrenom': instance.membrePrenom,
|
|
'organisationId': instance.organisationId,
|
|
'organisationNom': instance.organisationNom,
|
|
'type': _$TypeCotisationEnumMap[instance.type]!,
|
|
'statut': _$StatutCotisationEnumMap[instance.statut]!,
|
|
'montant': instance.montant,
|
|
'montantPaye': instance.montantPaye,
|
|
'devise': instance.devise,
|
|
'dateEcheance': instance.dateEcheance.toIso8601String(),
|
|
'datePaiement': instance.datePaiement?.toIso8601String(),
|
|
'dateRappel': instance.dateRappel?.toIso8601String(),
|
|
'methodePaiement': _$MethodePaiementEnumMap[instance.methodePaiement],
|
|
'numeroPaiement': instance.numeroPaiement,
|
|
'referencePaiement': instance.referencePaiement,
|
|
'annee': instance.annee,
|
|
'mois': instance.mois,
|
|
'trimestre': instance.trimestre,
|
|
'semestre': instance.semestre,
|
|
'description': instance.description,
|
|
'notes': instance.notes,
|
|
'recu': instance.recu,
|
|
'dateCreation': instance.dateCreation?.toIso8601String(),
|
|
'dateModification': instance.dateModification?.toIso8601String(),
|
|
'creeParId': instance.creeParId,
|
|
'modifieParId': instance.modifieParId,
|
|
};
|
|
|
|
const _$TypeCotisationEnumMap = {
|
|
TypeCotisation.annuelle: 'ANNUELLE',
|
|
TypeCotisation.mensuelle: 'MENSUELLE',
|
|
TypeCotisation.trimestrielle: 'TRIMESTRIELLE',
|
|
TypeCotisation.semestrielle: 'SEMESTRIELLE',
|
|
TypeCotisation.exceptionnelle: 'EXCEPTIONNELLE',
|
|
};
|
|
|
|
const _$StatutCotisationEnumMap = {
|
|
StatutCotisation.payee: 'PAYEE',
|
|
StatutCotisation.nonPayee: 'NON_PAYEE',
|
|
StatutCotisation.enRetard: 'EN_RETARD',
|
|
StatutCotisation.partielle: 'PARTIELLE',
|
|
StatutCotisation.annulee: 'ANNULEE',
|
|
};
|
|
|
|
const _$MethodePaiementEnumMap = {
|
|
MethodePaiement.especes: 'ESPECES',
|
|
MethodePaiement.cheque: 'CHEQUE',
|
|
MethodePaiement.virement: 'VIREMENT',
|
|
MethodePaiement.carteBancaire: 'CARTE_BANCAIRE',
|
|
MethodePaiement.waveMoney: 'WAVE_MONEY',
|
|
MethodePaiement.orangeMoney: 'ORANGE_MONEY',
|
|
MethodePaiement.freeMoney: 'FREE_MONEY',
|
|
MethodePaiement.mobileMoney: 'MOBILE_MONEY',
|
|
MethodePaiement.autre: 'AUTRE',
|
|
};
|