ISCSIPersistentVolumeSource.fromJson constructor

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

Creates a ISCSIPersistentVolumeSource from JSON data.

Implementation

ISCSIPersistentVolumeSource.fromJson(Map<String, dynamic> json)
    : this(
        chapAuthDiscovery: json['chapAuthDiscovery'],
        chapAuthSession: json['chapAuthSession'],
        fsType: json['fsType'],
        initiatorName: json['initiatorName'],
        iqn: json['iqn'],
        iscsiInterface: json['iscsiInterface'],
        lun: json['lun'],
        portals: json['portals'] != null
            ? List<String>.from(json['portals'])
            : null,
        readOnly: json['readOnly'],
        secretRef: json['secretRef'] != null
            ? SecretReference.fromJson(json['secretRef'])
            : null,
        targetPortal: json['targetPortal'],
      );