AttachedVolume.fromJson constructor

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

Creates a AttachedVolume from JSON data.

Implementation

factory AttachedVolume.fromJson(Map<String, dynamic> json) {
  final tempDevicePathJson = json['devicePath'];
  final tempNameJson = json['name'];

  final String tempDevicePath = tempDevicePathJson;
  final String tempName = tempNameJson;

  return AttachedVolume(
    devicePath: tempDevicePath,
    name: tempName,
  );
}