RoloLudo/RoloLudo.package/SfAssets.class/instance/fromUrlString.language..st

8 lines
246 B
Smalltalk

accessing
fromUrlString: aString language: isoCode
| rawData |
rawData := STON fromString: aString asUrl retrieveContents.
self items: ((rawData at: 'Assets') collect: [:assetDict |
SfAsset new fromDictionary: assetDict; language: isoCode ])