ThirdPartyJobData.fromJson constructor

ThirdPartyJobData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ThirdPartyJobData.fromJson(Map<String, dynamic> json) {
  return ThirdPartyJobData(
    actionConfiguration: json['actionConfiguration'] != null
        ? ActionConfiguration.fromJson(
            json['actionConfiguration'] as Map<String, dynamic>)
        : null,
    actionTypeId: json['actionTypeId'] != null
        ? ActionTypeId.fromJson(json['actionTypeId'] as Map<String, dynamic>)
        : null,
    artifactCredentials: json['artifactCredentials'] != null
        ? AWSSessionCredentials.fromJson(
            json['artifactCredentials'] as Map<String, dynamic>)
        : null,
    continuationToken: json['continuationToken'] as String?,
    encryptionKey: json['encryptionKey'] != null
        ? EncryptionKey.fromJson(
            json['encryptionKey'] as Map<String, dynamic>)
        : null,
    inputArtifacts: (json['inputArtifacts'] as List?)
        ?.whereNotNull()
        .map((e) => Artifact.fromJson(e as Map<String, dynamic>))
        .toList(),
    outputArtifacts: (json['outputArtifacts'] as List?)
        ?.whereNotNull()
        .map((e) => Artifact.fromJson(e as Map<String, dynamic>))
        .toList(),
    pipelineContext: json['pipelineContext'] != null
        ? PipelineContext.fromJson(
            json['pipelineContext'] as Map<String, dynamic>)
        : null,
  );
}