Device.fromJson constructor

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

Implementation

factory Device.fromJson(Map<String, dynamic> json) => Device(
      name: json['name'],
      manufacturer: json['manufacturer'],
      model: json['model'],
      hardware: json['hardwareVersion'],
      software: json['softwareVersion'],
    );