TokenTheme.fromJson constructor
Implementation
factory TokenTheme.fromJson(Map<String, dynamic> e, List<String> allSets) {
final sets = <String>[];
(e['selectedTokenSets'] as Map<String, dynamic>?)?.forEach((key, value) {
if (value == 'source') sets.insert(0, key);
if (value == 'enabled') sets.add(key);
});
return TokenTheme(e['name'] as String, sets);
}