diff --git a/packages/auto_mappr/README.md b/packages/auto_mappr/README.md index 841adaa..7edd0ae 100644 --- a/packages/auto_mappr/README.md +++ b/packages/auto_mappr/README.md @@ -715,6 +715,25 @@ static Value objectToValueObject2(Object source) { } ``` +To make it more clear, here is a list of type converters +with an input -> source sublist of what the converter support. + +- `TypeConverter` ... aka `Object converter(Object) => ...` + - `Object` -> `Object` + - `Object` -> `Object?` + - `Object?` -> `Object?`, when source IS NOT null +- `TypeConverter` ... aka `Object? converter(Object) => ...` + - `Object` -> `Object?` + - `Object?` -> `Object?` when source IS NOT null +- `TypeConverter` ... aka `Object converter(Object?) => ...` + - `Object` -> `Object` + - `Object?` -> `Object` + - `Object` -> `Object?` + - `Object?` -> `Object?` +- `TypeConverter` ... aka `Object? converter(Object?) => ...` + - `Object` -> `Object?` + - `Object?` -> `Object?` + ### Reverse mapping When you want to create a bidirectional mapping (e.g. normal: source to target and reversed: target to source),