deserialize method
Implementation
@override
MessageListJson deserialize(PluralSelector selector) {
if (preamble.version != serializationVersion) {
throw ArgumentError(
'''This message has version ${preamble.version}, while the deserializer has version $serializationVersion''');
}
final mapping = _parsed[Preamble.length] as Map<String, dynamic>?;
for (var i = Preamble.length + 1; i < _parsed.length; i++) {
_messages.add(getMessage(_parsed[i], true));
}
return MessageListJson(
preamble,
_messages,
selector,
mapping?.map((key, value) => MapEntry(
int.parse(key, radix: serializationRadix),
int.parse(value as String, radix: serializationRadix),
)),
);
}