Printer.fromJson constructor

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

Implementation

Printer.fromJson(Map<String, dynamic> json) {
  address = json['address'];
  name = json['connectionType'] == 'BLE' ? json['platformName'] : json['name'];
  connectionType = _getConnectionTypeFromString(json['connectionType']);
  isConnected = json['isConnected'];
  vendorId = json['vendorId'];
  productId = json['productId'];
}