PubDesc.fromYamlMap constructor
PubDesc.fromYamlMap(
- YamlMap map
Create a PubDesc from a YamlMap.
Implementation
factory PubDesc.fromYamlMap(YamlMap map) {
return PubDesc(
name: map['name'] as String?,
sha256: map['sha256'] as String?,
resolvedRef: map['resolved-ref'] as String?,
url: map['url'] as String?,
);
}