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"],
    connected: json["connected"] ?? false,
    isWifi: json["isWifi"].toString() == "true",
    status: json["status"] ?? StatusZebra.Disconnected.name,
    color: json["color"]);