Device.fromJson constructor

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

General constructor from JSON payload

Implementation

Device.fromJson(Map<String, dynamic> json)
    : name = json['name'],
      manufacturer = json['manufacturer'],
      model = json['model'],
      hardwareVersion = json['hardwareVersion'],
      firmwareVersion = json['firmwareVersion'],
      softwareVersion = json['softwareVersion'],
      localIdentifier = json['localIdentifier'],
      udiDeviceIdentifier = json['udiDeviceIdentifier'];