convert method
Converts input
and returns the result of the conversion.
Implementation
@override
Map<String, V> convert(Object? input) {
if (input is Map) {
final result = <String, V>{};
for (final entry in input.entries) {
final name = _cast<String>(entry.key);
result[name] = convertProperty(valueType, name, input);
}
checkRequiredProperties(result.keys);
return result;
}
throw TypeException(Map<String, Object?>, input);
}