EnvFromSource.fromJson constructor

EnvFromSource.fromJson(
  1. Map json_
)

Implementation

EnvFromSource.fromJson(core.Map json_)
    : this(
        configMapRef: json_.containsKey('configMapRef')
            ? ConfigMapEnvSource.fromJson(
                json_['configMapRef'] as core.Map<core.String, core.dynamic>)
            : null,
        prefix: json_.containsKey('prefix')
            ? json_['prefix'] as core.String
            : null,
        secretRef: json_.containsKey('secretRef')
            ? SecretEnvSource.fromJson(
                json_['secretRef'] as core.Map<core.String, core.dynamic>)
            : null,
      );