BuildConfig.fromJson constructor

BuildConfig.fromJson(
  1. Map json_
)

Implementation

BuildConfig.fromJson(core.Map json_)
    : this(
        automaticUpdatePolicy: json_.containsKey('automaticUpdatePolicy')
            ? AutomaticUpdatePolicy.fromJson(json_['automaticUpdatePolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        build:
            json_.containsKey('build') ? json_['build'] as core.String : null,
        dockerRegistry: json_.containsKey('dockerRegistry')
            ? json_['dockerRegistry'] as core.String
            : null,
        dockerRepository: json_.containsKey('dockerRepository')
            ? json_['dockerRepository'] as core.String
            : null,
        entryPoint: json_.containsKey('entryPoint')
            ? json_['entryPoint'] as core.String
            : null,
        environmentVariables: json_.containsKey('environmentVariables')
            ? (json_['environmentVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        onDeployUpdatePolicy: json_.containsKey('onDeployUpdatePolicy')
            ? OnDeployUpdatePolicy.fromJson(json_['onDeployUpdatePolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        runtime: json_.containsKey('runtime')
            ? json_['runtime'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceProvenance: json_.containsKey('sourceProvenance')
            ? SourceProvenance.fromJson(json_['sourceProvenance']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceToken: json_.containsKey('sourceToken')
            ? json_['sourceToken'] as core.String
            : null,
        workerPool: json_.containsKey('workerPool')
            ? json_['workerPool'] as core.String
            : null,
      );