BuildOptions.fromJson constructor

BuildOptions.fromJson(
  1. Map json_
)

Implementation

BuildOptions.fromJson(core.Map json_)
    : this(
        automapSubstitutions: json_.containsKey('automapSubstitutions')
            ? json_['automapSubstitutions'] as core.bool
            : null,
        defaultLogsBucketBehavior:
            json_.containsKey('defaultLogsBucketBehavior')
                ? json_['defaultLogsBucketBehavior'] as core.String
                : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.String
            : null,
        dynamicSubstitutions: json_.containsKey('dynamicSubstitutions')
            ? json_['dynamicSubstitutions'] as core.bool
            : null,
        env: json_.containsKey('env')
            ? (json_['env'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        logStreamingOption: json_.containsKey('logStreamingOption')
            ? json_['logStreamingOption'] as core.String
            : null,
        logging: json_.containsKey('logging')
            ? json_['logging'] as core.String
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        pool: json_.containsKey('pool')
            ? PoolOption.fromJson(
                json_['pool'] as core.Map<core.String, core.dynamic>)
            : null,
        requestedVerifyOption: json_.containsKey('requestedVerifyOption')
            ? json_['requestedVerifyOption'] as core.String
            : null,
        secretEnv: json_.containsKey('secretEnv')
            ? (json_['secretEnv'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sourceProvenanceHash: json_.containsKey('sourceProvenanceHash')
            ? (json_['sourceProvenanceHash'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        substitutionOption: json_.containsKey('substitutionOption')
            ? json_['substitutionOption'] as core.String
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        workerPool: json_.containsKey('workerPool')
            ? json_['workerPool'] as core.String
            : null,
      );