Artifact.fromJson constructor

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

Implementation

factory Artifact.fromJson(Map<String, dynamic> json) {
  return Artifact(
    location: json['location'] != null
        ? ArtifactLocation.fromJson(json['location'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    revision: json['revision'] as String?,
  );
}