applyFromInstanceConverter<TFrom, TTo> method
Implementation
TFrom? applyFromInstanceConverter<TFrom, TTo>(TTo value,
[JsonConverter<TFrom, TTo>? converter]) {
if (value == null) return null;
final effectiveConverter = converter ?? _toTypeConverterMap[TTo.toString()];
return effectiveConverter != null
? effectiveConverter.toJson(value)
: value;
}