ScaleIOPersistentVolumeSource.fromJson constructor

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

Creates a ScaleIOPersistentVolumeSource from JSON data.

Implementation

factory ScaleIOPersistentVolumeSource.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 SecretReference tempSecretRef =
      SecretReference.fromJson(tempSecretRefJson);
  final bool? tempSslEnabled = tempSslEnabledJson;
  final String? tempStorageMode = tempStorageModeJson;
  final String? tempStoragePool = tempStoragePoolJson;
  final String tempSystem = tempSystemJson;
  final String? tempVolumeName = tempVolumeNameJson;

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