Hi,
I try to use the json_serializable package to convert Uint8List (byte[]) in JSON but I have this error message :
Error running JsonSerializableGenerator
Could not generatefromJsoncode forimageContent.
None of the providedTypeHelperinstances support the defined type.
â•·
27 │ Uint8List imageContent;
│ ^^^^^^^^^^^^
╵
Here is the source code :
@JsonKey(name: 'image_content')
Uint8List imageContent;
Could you please tell me how to handle the Uint8List type with your package ?
Thanks a lot
You'll have to add a converter for this.
I'm likely NOT going to add support for these types.