Device.fromJson constructor

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

Implementation

factory Device.fromJson(Map<String, dynamic> json) {
  return Device(
    name: json['name'],
    description: json['description'],
    baudRate: json['baudRate'],
    port: json['port'],
    serialNumber: json['serialNumber'],
    manufacturer: json['manufacturer'],
    product: json['product'],
    protocol: json['protocol'],
    protocolVersion: json['protocolVersion'],
  );
}