VsphereVirtualDiskVolumeSource.fromJson constructor

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

Creates a VsphereVirtualDiskVolumeSource from JSON data.

Implementation

factory VsphereVirtualDiskVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempFsTypeJson = json['fsType'];
  final tempStoragePolicyIDJson = json['storagePolicyID'];
  final tempStoragePolicyNameJson = json['storagePolicyName'];
  final tempVolumePathJson = json['volumePath'];

  final String? tempFsType = tempFsTypeJson;
  final String? tempStoragePolicyID = tempStoragePolicyIDJson;
  final String? tempStoragePolicyName = tempStoragePolicyNameJson;
  final String tempVolumePath = tempVolumePathJson;

  return VsphereVirtualDiskVolumeSource(
    fsType: tempFsType,
    storagePolicyID: tempStoragePolicyID,
    storagePolicyName: tempStoragePolicyName,
    volumePath: tempVolumePath,
  );
}