toJson method

  1. @override
Map<String, String> toJson()
override

Serializes a LocalizedString to its RWPM JSON representation.

Implementation

@override
Map<String, String> toJson() => translations.map((language, translation) =>
    MapEntry(language ?? undefinedLanguage, translation.string));