ScaleIOVolumeSource.fromJson constructor

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

Creates a ScaleIOVolumeSource from JSON data.

Implementation

factory ScaleIOVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempFsTypeJson = json['fsType'];
  final tempGatewayJson = json['gateway'];
  final tempProtectionDomainJson = json['protectionDomain'];
  final tempReadOnlyJson = json['readOnly'];
  final tempSecretRefJson = json['secretRef'];
  final tempSslEnabledJson = json['sslEnabled'];
  final tempStorageModeJson = json['storageMode'];
  final tempStoragePoolJson = json['storagePool'];
  final tempSystemJson = json['system'];
  final tempVolumeNameJson = json['volumeName'];

  final String? tempFsType = tempFsTypeJson;
  final String tempGateway = tempGatewayJson;
  final String? tempProtectionDomain = tempProtectionDomainJson;
  final bool? tempReadOnly = tempReadOnlyJson;
  final LocalObjectReference tempSecretRef =
      LocalObjectReference.fromJson(tempSecretRefJson);
  final bool? tempSslEnabled = tempSslEnabledJson;
  final String? tempStorageMode = tempStorageModeJson;
  final String? tempStoragePool = tempStoragePoolJson;
  final String tempSystem = tempSystemJson;
  final String? tempVolumeName = tempVolumeNameJson;

  return ScaleIOVolumeSource(
    fsType: tempFsType,
    gateway: tempGateway,
    protectionDomain: tempProtectionDomain,
    readOnly: tempReadOnly,
    secretRef: tempSecretRef,
    sslEnabled: tempSslEnabled,
    storageMode: tempStorageMode,
    storagePool: tempStoragePool,
    system: tempSystem,
    volumeName: tempVolumeName,
  );
}