toJson method
Serializes a LocalizedString to its RWPM JSON representation.
Implementation
@override
Map<String, String> toJson() => translations.map((language, translation) =>
MapEntry(language ?? undefinedLanguage, translation.string));
Serializes a LocalizedString to its RWPM JSON representation.
@override
Map<String, String> toJson() => translations.map((language, translation) =>
MapEntry(language ?? undefinedLanguage, translation.string));