DeployJobRun.fromJson constructor

DeployJobRun.fromJson(
  1. Map json_
)

Implementation

DeployJobRun.fromJson(core.Map json_)
    : this(
        artifact: json_.containsKey('artifact')
            ? DeployArtifact.fromJson(
                json_['artifact'] as core.Map<core.String, core.dynamic>)
            : null,
        build:
            json_.containsKey('build') ? json_['build'] as core.String : null,
        failureCause: json_.containsKey('failureCause')
            ? json_['failureCause'] as core.String
            : null,
        failureMessage: json_.containsKey('failureMessage')
            ? json_['failureMessage'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? DeployJobRunMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
      );