PortworxVolumeSource.fromJson constructor
Creates a PortworxVolumeSource from JSON data.
Implementation
factory PortworxVolumeSource.fromJson(Map<String, dynamic> json) {
final tempFsTypeJson = json['fsType'];
final tempReadOnlyJson = json['readOnly'];
final tempVolumeIDJson = json['volumeID'];
final String? tempFsType = tempFsTypeJson;
final bool? tempReadOnly = tempReadOnlyJson;
final String tempVolumeID = tempVolumeIDJson;
return PortworxVolumeSource(
fsType: tempFsType,
readOnly: tempReadOnly,
volumeID: tempVolumeID,
);
}