PortworxVolumeSource.fromJson constructor

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

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,
  );
}