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