RoloLudo/RoloLudo.package/SfAsset.class/class/collectionFromRepository.language..st

6 lines
247 B
Smalltalk

accessing
collectionFromRepository: jsonFileUrl language: isoCode
| rawData |
rawData := STON fromString: jsonFileUrl asUrl retrieveContents.
^ (rawData at: 'Assets') collect: [:assetDict |
self new fromDictionary: assetDict; language: isoCode ]