You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error Found more than one matching converter for `int?`.
if i remove JsonIntConverter,JsonNullIntConverter di not gen code for int
FileInfo _$FileInfoFromJson(Map<String, dynamic> json) => FileInfo(
status: json['status'] as int? ?? 0,
fileId: json['file_id'] as int? ?? 0,
fileName: json['file_name'] as String?,
filePath: json['file_path'] as String?,
filePreviewUrl: json['file_preview_url'] as String?,
fileSize: json['file_size'] as int? ?? 0,
bucket: json['bucket'] as String?,
key: json['key'] as String?,
host: json['host'] as String?,
accessid: json['accessid'] as String?,
callback: json['callback'] as String?,
callbackVar: json['callback-var'] as String?,
policy: json['policy'] as String?,
signature: json['signature'] as String?,
expire: json['expire'] as String?,
);
The text was updated successfully, but these errors were encountered:
For whatever reason, the current workaround is to define converters both as annotations and as list members, however, it must be done separately for nullable and non-nullable types, like so:
my json convertor
my entity
error
Found more than one matching converter for `int?`.
if i remove JsonIntConverter,JsonNullIntConverter di not gen code for int
The text was updated successfully, but these errors were encountered: