Device.from(Map<String, dynamic> json) : manufacturer = json['manufacturer'], model = json['model'], type = DeviceType.from(json['type']), uid = json['uid'];