factory PubspecLock.parse(String yaml, {Uri? sourceUrl}) => checkedYamlDecode(yaml, (map) => PubspecLock.fromJson(map ?? {}), sourceUrl: sourceUrl);