buildParsingInfo static method
Builds a diagnostic map describing a conversion attempt; mainly used by tests and error reporting.
Implementation
@visibleForTesting
static Map<String, dynamic> buildParsingInfo({
required String method,
dynamic object,
dynamic mapKey,
int? listIndex,
String? format,
String? locale,
bool? autoDetectFormat,
bool? useCurrentLocale,
bool? utc,
dynamic defaultValue,
dynamic converter,
Type? targetType,
Map<String, dynamic>? debugInfo,
}) => ConvertObjectImpl.buildContext(
method: method,
object: object,
mapKey: mapKey,
listIndex: listIndex,
format: format,
locale: locale,
autoDetectFormat: autoDetectFormat,
useCurrentLocale: useCurrentLocale,
utc: utc,
defaultValue: defaultValue,
converter: converter,
targetType: targetType,
debugInfo: debugInfo,
);