BuildStep.fromJson constructor

BuildStep.fromJson(
  1. Map json_
)

Implementation

BuildStep.fromJson(core.Map json_)
    : this(
        allowExitCodes: json_.containsKey('allowExitCodes')
            ? (json_['allowExitCodes'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        allowFailure: json_.containsKey('allowFailure')
            ? json_['allowFailure'] as core.bool
            : null,
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        automapSubstitutions: json_.containsKey('automapSubstitutions')
            ? json_['automapSubstitutions'] as core.bool
            : null,
        dir: json_.containsKey('dir') ? json_['dir'] as core.String : null,
        entrypoint: json_.containsKey('entrypoint')
            ? json_['entrypoint'] as core.String
            : null,
        env: json_.containsKey('env')
            ? (json_['env'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        exitCode: json_.containsKey('exitCode')
            ? json_['exitCode'] as core.int
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pullTiming: json_.containsKey('pullTiming')
            ? TimeSpan.fromJson(
                json_['pullTiming'] as core.Map<core.String, core.dynamic>)
            : null,
        script: json_.containsKey('script')
            ? json_['script'] as core.String
            : null,
        secretEnv: json_.containsKey('secretEnv')
            ? (json_['secretEnv'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
        timing: json_.containsKey('timing')
            ? TimeSpan.fromJson(
                json_['timing'] as core.Map<core.String, core.dynamic>)
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        waitFor: json_.containsKey('waitFor')
            ? (json_['waitFor'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );