ProjetLoiFromJson.fromFrenchNationalAssemblyJson constructor
Mapping from JSON
Implementation
ProjetLoiFromJson.fromFrenchNationalAssemblyJson(Map<String, dynamic> _map) {
Map<String, dynamic> json = _map["document"];
this.uuid = json['uid'];
this.legislature = json['legislature'];
Map<String, dynamic> _titreDossier = json["titres"];
this.titre = _titreDossier['titrePrincipal'];
this.dossierRef = json['dossierRef'];
Map<String, dynamic> _cycleDeVie = json["cycleDeVie"];
Map<String, dynamic> _chrono = _cycleDeVie["chrono"];
this.dateDepot = _chrono["dateDepot"].toString().length > 9
? dateFormatter(_chrono["dateDepot"].toString().split("T")[0],
dateSeparator: "-", noHour: true, format: "YMD")
: DateTime.now();
}