extractMap method
Extracts and validates a Map from dynamic value. Throws FormatException if value is not a Map.
Implementation
@override
Map<dynamic, dynamic> extractMap(dynamic value, String errMsg) {
if (value is! Map) {
throw FormatException(
"[JsonConverter] expected Map, got ${value.runtimeType}: $errMsg",
);
}
return value;
}