$Artifact.fromJson constructor

$Artifact.fromJson(
  1. Map _json
)

Implementation

$Artifact.fromJson(core.Map _json)
    : this(
        checksum: _json.containsKey('checksum')
            ? _json['checksum'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        names: _json.containsKey('names')
            ? (_json['names'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );