ZebraDevice.fromJson constructor

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

Implementation

factory ZebraDevice.fromJson(Map<String, dynamic> json) => ZebraDevice(
    address: json["ipAddress"] ?? json["macAddress"],
    name: json["name"],
    isWifi: json["isWifi"].toString() == "true",
    isConnected: json["isConnected"],
    status: json["status"] ,
    color: json["color"]);