DigicodeLogModel.fromJson constructor
DigicodeLogModel.fromJson(
- Map<String, dynamic> json
)
Implementation
DigicodeLogModel.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) this.id = json["id"];
if (json["digicodeId"] is int) this.digicodeId = json["digicodeId"];
if (json["productSerial"] is String)
this.productSerial = json["productSerial"];
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"];
if (json["code"] is String) this.code = json["code"];
if (json["typedAt"] is int) this.typedAt = json["typedAt"];
if (json["success"] is int) this.success = json["success"];
if (json["display"] is int) this.display = json["display"];
if (json["manualUnlock"] is int) this.manualUnlock = json["manualUnlock"];
if (json["digicodeName"] is String)
this.digicodeName = json["digicodeName"];
if (json["labelTyper"] is String) this.labelTyper = json["labelTyper"];
if (json["publicName"] is String) this.publicName = json["publicName"];
if (json["utcModifier"] is String) this.utcModifier = json["utcModifier"];
}