Artifact.fromJson constructor

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

Implementation

factory Artifact.fromJson(Map<String, dynamic> json) {
  return Artifact(
    arn: json['arn'] as String?,
    extension: json['extension'] as String?,
    name: json['name'] as String?,
    type: (json['type'] as String?)?.toArtifactType(),
    url: json['url'] as String?,
  );
}