Terminal.fromJson constructor
Terminal.fromJson(
- Map<String, dynamic> json
)
Implementation
Terminal.fromJson(Map<String, dynamic> json) {
if (json["placeId"] is int) placeId = json["placeId"];
if (json["placeCity"] is String) placeCity = json["placeCity"];
if (json["placeLabel"] is String) placeLabel = json["placeLabel"];
if (json["placeLng"] is double) placeLng = json["placeLng"];
if (json["placeLat"] is double) placeLat = json["placeLat"];
if (json["placeCountry"] is String) {
placeCountry = json["placeCountry"];
}
if (json["placeCountryCode"] is String) {
placeCountryCode = json["placeCountryCode"];
}
if (json["placeZip"] is String) placeZip = json["placeZip"];
if (json["placeStreet1"] is String) {
placeStreet1 = json["placeStreet1"];
}
if (json["placeStreet2"] is String) {
placeStreet2 = json["placeStreet2"];
}
if (json["utcModifier"] is String) utcModifier = json["utcModifier"];
if (json["id"] is int) id = json["id"];
if (json["name"] is String) name = json["name"];
if (json["authCode"] is String) authCode = json["authCode"];
if (json["ticketOptionalStr"] is String) {
ticketOptionalStr = json["ticketOptionalStr"];
}
if (json["arckipel"] is int) arckipel = json["arckipel"];
if (json["label"] is String) label = json["label"];
if (json["description"] is String) description = json["description"];
if (json["productId"] is int) productId = json["productId"];
if (json["productSerial"] is String) {
productSerial = json["productSerial"];
}
if (json["statusLabel"] is String) statusLabel = json["statusLabel"];
if (json["statusColor"] is String) statusColor = json["statusColor"];
if (json["pictureUrl"] is String) pictureUrl = json["pictureUrl"];
if (json["password"] is String) password = json["password"];
if (json["terminalType"] is String) {
terminalType = json["terminalType"];
}
if (json["terminalTypeName"] is String) {
terminalTypeName = json["terminalTypeName"];
}
if (json["warrantyUntil"] is int) {
warrantyUntil = json["warrantyUntil"];
}
if (json["purchasedAt"] is int) purchasedAt = json["purchasedAt"];
if (json["macAddress"] is String) macAddress = json["macAddress"];
if (json["moreInfos"] is String) moreInfos = json["moreInfos"];
if (json["timeSlide"] is int) timeSlide = json["timeSlide"];
}