decode method
Decodes a JSON string into a JSON-safe map.
Implementation
@override
Map<String, dynamic> decode(String raw) {
final decoded = jsonDecode(raw);
if (decoded is! Map<String, dynamic>) {
throw const FormatException('Expected a JSON object');
}
return decoded;
}