DigicodeCodeModel.fromJson constructor

DigicodeCodeModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

DigicodeCodeModel.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) this.id = json["id"];
  if (json["code"] is String) this.code = json["code"];
  if (json["activ"] is int) this.activ = json["activ"];
  if (json["label"] is String) this.label = json["label"];
  if (json["createdAt"] is int) this.createdAt = json["createdAt"];
  if (json["accessType"] is int) this.accessType = json["accessType"];
  if (json["digicodeId"] is int) this.digicodeId = json["digicodeId"];
  if (json["accessCounter"] is int)
    this.accessCounter = json["accessCounter"];
  if (json["uniqueId"] is String) this.uniqueId = json["uniqueId"];
  if (json["timeStart"] is int) this.timeStart = json["timeStart"];
  if (json["timeStop"] is int) this.timeStop = json["timeStop"];
  if (json["validDays"] is int) this.validDays = json["validDays"];
  if (json["dateTimeStart"] is int)
    this.dateTimeStart = json["dateTimeStart"];
  if (json["dateTimeStop"] is int) this.dateTimeStop = json["dateTimeStop"];
  if (json["accessTypeLabel"] is String)
    this.accessTypeLabel = json["accessTypeLabel"];
  if (json["placeCity"] is String) this.placeCity = json["placeCity"];
  if (json["placeLabel"] is String) this.placeLabel = json["placeLabel"];
  if (json["placeLng"] is int) this.placeLng = json["placeLng"];
  if (json["placeLat"] is int) this.placeLat = json["placeLat"];
  if (json["placeCountry"] is String)
    this.placeCountry = json["placeCountry"];
  if (json["placeZip"] is String) this.placeZip = json["placeZip"];
  if (json["placeStreet1"] is String)
    this.placeStreet1 = json["placeStreet1"];
  if (json["placeStreet2"] is String)
    this.placeStreet2 = json["placeStreet2"];
}