ArtifactLocation.fromJson constructor

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

Implementation

factory ArtifactLocation.fromJson(Map<String, dynamic> json) {
  return ArtifactLocation(
    s3Location: json['s3Location'] != null
        ? S3ArtifactLocation.fromJson(
            json['s3Location'] as Map<String, dynamic>)
        : null,
    type: (json['type'] as String?)?.toArtifactLocationType(),
  );
}