59 lines
1.4 KiB
Dart
59 lines
1.4 KiB
Dart
class AbsenceGarde {
|
|
final String id;
|
|
final String idPlacement;
|
|
final String type;
|
|
final String dateDebut;
|
|
final String dateFin;
|
|
final String statut;
|
|
final String expireAt;
|
|
final String? creePar;
|
|
final String? motif;
|
|
final String? idEnfant;
|
|
final String? prenomEnfant;
|
|
final String? idAm;
|
|
final String? prenomAm;
|
|
final String? nomAm;
|
|
final String creeLe;
|
|
final String modifieLe;
|
|
|
|
AbsenceGarde({
|
|
required this.id,
|
|
required this.idPlacement,
|
|
required this.type,
|
|
required this.dateDebut,
|
|
required this.dateFin,
|
|
required this.statut,
|
|
required this.expireAt,
|
|
this.creePar,
|
|
this.motif,
|
|
this.idEnfant,
|
|
this.prenomEnfant,
|
|
this.idAm,
|
|
this.prenomAm,
|
|
this.nomAm,
|
|
required this.creeLe,
|
|
required this.modifieLe,
|
|
});
|
|
|
|
factory AbsenceGarde.fromJson(Map<String, dynamic> json) {
|
|
return AbsenceGarde(
|
|
id: json['id'] ?? '',
|
|
idPlacement: json['id_placement'] ?? '',
|
|
type: json['type'] ?? '',
|
|
dateDebut: json['date_debut'] ?? '',
|
|
dateFin: json['date_fin'] ?? '',
|
|
statut: json['statut'] ?? '',
|
|
expireAt: json['expire_at'] ?? '',
|
|
creePar: json['cree_par'],
|
|
motif: json['motif'],
|
|
idEnfant: json['id_enfant'],
|
|
prenomEnfant: json['prenom_enfant'],
|
|
idAm: json['id_am'],
|
|
prenomAm: json['prenom_am'],
|
|
nomAm: json['nom_am'],
|
|
creeLe: json['cree_le'] ?? '',
|
|
modifieLe: json['modifie_le'] ?? '',
|
|
);
|
|
}
|
|
}
|