stringifyValue method
String
stringifyValue(
- UserModel value, [
- MapperContainer? container
])
inherited
Implementation
String stringifyValue(T value, [MapperContainer? container]) {
try {
var context = MappingContext(
container: container,
args: () => value.runtimeType.args
.map((t) => t == UnresolvedType ? dynamic : t)
.toList(),
);
return stringify(value, context);
} catch (e, stacktrace) {
Error.throwWithStackTrace(
MapperException.chain(MapperMethod.stringify,
'(Instance of \'${value.runtimeType}\')', e),
stacktrace,
);
}
}