fromMap static method
Implementation
static PrinterStatus fromMap(Map<dynamic, dynamic> map) {
return PrinterStatus(
statusBytes: map["statusBytes"],
errorCode: ErrorCode.fromMap(map["errorCode"]),
labelId: map["labelId"],
labelType: map["labelType"],
isACConnected: BatteryTernary.fromMap(map["isACConnected"]),
isBatteryMounted: BatteryTernary.fromMap(map["isBatteryMounted"]),
batteryLevel: map["batteryLevel"],
batteryResidualQuantityLevel: map["batteryResidualQuantityLevel"],
maxOfBatteryResidualQuantityLevel: map["maxOfBatteryResidualQuantityLevel"]
);
}