QrDeviceInfo.fromJson constructor
QrDeviceInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
QrDeviceInfo.fromJson(Map<String, dynamic> json) {
if (json["id"] is String) id = json["id"];
if (json["label"] is String) label = json["label"];
publicName = json["publicName"];
if (json["isRent"] is int) isRent = json["isRent"];
if (json["ownerProId"] is int) ownerProId = json["ownerProId"];
if (json["beers"] is List) {
beers = json["beers"] == null
? null
: (json["beers"] as List).map((e) => Beers.fromJson(e)).toList();
}
}