PhotonPersistentDiskVolumeSource.fromJson constructor

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

Creates a PhotonPersistentDiskVolumeSource from JSON data.

Implementation

factory PhotonPersistentDiskVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempFsTypeJson = json['fsType'];
  final tempPdIDJson = json['pdID'];

  final String? tempFsType = tempFsTypeJson;
  final String tempPdID = tempPdIDJson;

  return PhotonPersistentDiskVolumeSource(
    fsType: tempFsType,
    pdID: tempPdID,
  );
}