PrinterStatus.fromJson constructor

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

Creates a PrinterStatus instance from a JSON map.

Implementation

factory PrinterStatus.fromJson(Map<String, dynamic> json) {
  return PrinterStatus(
    statusInt: json['status'],
    uuid: json['uuid'],
    statusMessage: json['statusMessage'],
  );
}