$checkedCreate<T> function
T
$checkedCreate<T>(})
Helper function used in generated code when
JsonSerializableGenerator.checked
is true
.
Should not be used directly.
Implementation
T $checkedCreate<T>(
String className,
Map map,
T Function(
S Function<S>(
String,
S Function(Object?), {
Object? Function(Map, String)? readValue,
}),
) constructor, {
Map<String, String> fieldKeyMap = const {},
}) {
Q checkedConvert<Q>(
String key,
Q Function(Object?) convertFunction, {
Object? Function(Map, String)? readValue,
}) =>
$checkedConvert<Q>(map, key, convertFunction, readValue: readValue);
return $checkedNew(
className,
map,
() => constructor(checkedConvert),
fieldKeyMap: fieldKeyMap,
);
}