GoSettings.fromJson constructor
GoSettings.fromJson(
- Object? j
Implementation
factory GoSettings.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GoSettings(
common: switch (json['common']) {
null => null,
Object $1 => CommonLanguageSettings.fromJson($1),
},
renamedServices: switch (json['renamedServices']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"renamedServices" is not an object'),
},
);
}