Device.fromJson constructor
Implementation
factory Device.fromJson(Map<String, dynamic> json) {
return Device(
id: json['id'],
name: json['name'],
isActive: json['is_active'],
isRestricted: json['is_restricted'],
type: json['type'],
volumePercent: json['volume_percent'],
);
}