Environment.fromJson constructor

Environment.fromJson(
  1. Map json_
)

Implementation

Environment.fromJson(core.Map json_)
    : this(
        encryptedVariables: json_.containsKey('encryptedVariables')
            ? KMSEnvMap.fromJson(json_['encryptedVariables']
                as core.Map<core.String, core.dynamic>)
            : null,
        secretVariables: json_.containsKey('secretVariables')
            ? (json_['secretVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        variables: json_.containsKey('variables')
            ? (json_['variables'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );