Device.fromJson constructor

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

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'],
  );
}