VolumeDevice.fromJson constructor
Creates a VolumeDevice from JSON data.
Implementation
factory VolumeDevice.fromJson(Map<String, dynamic> json) {
final tempDevicePathJson = json['devicePath'];
final tempNameJson = json['name'];
final String tempDevicePath = tempDevicePathJson;
final String tempName = tempNameJson;
return VolumeDevice(
devicePath: tempDevicePath,
name: tempName,
);
}