CSIVolumeSource.fromJson constructor

CSIVolumeSource.fromJson(
  1. Map json_
)

Implementation

CSIVolumeSource.fromJson(core.Map json_)
    : this(
        driver: json_.containsKey('driver')
            ? json_['driver'] as core.String
            : null,
        readOnly: json_.containsKey('readOnly')
            ? json_['readOnly'] as core.bool
            : null,
        volumeAttributes: json_.containsKey('volumeAttributes')
            ? (json_['volumeAttributes']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );