AmendementFromJson.fromFrenchNationalAssemblyJson constructor

AmendementFromJson.fromFrenchNationalAssemblyJson(
  1. Map<String, dynamic> _map
)

Mapping from JSON

Implementation

AmendementFromJson.fromFrenchNationalAssemblyJson(Map<String, dynamic> _map) {
  Map<String, dynamic> json = _map["amendement"];

  this.uuid = json['uid'];

  Map<String, dynamic> _identification = json["identification"];
  this.numeroLong = _identification['numeroLong'];
  this.numeroOrdreDepot = _identification['numeroOrdreDepot'];

  this.texteLegislatifRef = json['texteLegislatifRef'];

  Map<String, dynamic> _signataires = json["signataires"];
  this.libelleSignataires = _signataires['libelle'];

  Map<String, dynamic> _corps = json["corps"];
  if (_corps['cartoucheInformatif'] != null) {
    if (_corps['cartoucheInformatif'].toString().substring(0, 1) != "{") {
      this.cartoucheInformatif = _corps['cartoucheInformatif'];
    }
  }
  Map<String, dynamic> _contenuAuteur = _corps["contenuAuteur"];
  if (_contenuAuteur['exposeSommaire'] != null) {
    this.exposeSommaire = _contenuAuteur['exposeSommaire'];
  }
  if (_contenuAuteur['dispositif'] != null) {
    this.dispositif = _contenuAuteur['dispositif'];
  }

  Map<String, dynamic> _cycleDeVie = json["cycleDeVie"];
  if (_cycleDeVie['sort'].toString().substring(0, 1) == "{") {
    this.cycleDeVieSort = "";
  } else if (_cycleDeVie['sort'].toString().substring(0, 1) != "{") {
    this.cycleDeVieSort = _cycleDeVie['sort'];
  }

  if (json['seanceDiscussionRef'].toString().substring(0, 1) != "{") {
    this.seanceDiscussionRef = json['seanceDiscussionRef'];
  }
}