SecretVolumeSource.fromJson constructor

SecretVolumeSource.fromJson(
  1. Map json_
)

Implementation

SecretVolumeSource.fromJson(core.Map json_)
    : this(
        defaultMode: json_.containsKey('defaultMode')
            ? json_['defaultMode'] as core.int
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => KeyToPath.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        optional: json_.containsKey('optional')
            ? json_['optional'] as core.bool
            : null,
        secretName: json_.containsKey('secretName')
            ? json_['secretName'] as core.String
            : null,
      );