@Rest(fromGenerator: "double.tryParse(data['amount']?.toString() ?? '')")
double? amount;
The adapter is generated as double.parse(data['amount']?.toString() ?? '') which generates an error. It needs to be tryParse. To fix this, I have to specify the fromGenerator. With int, which seems to generate the same problem.
The adapter is generated as double.parse(data['amount']?.toString() ?? '') which generates an error. It needs to be tryParse. To fix this, I have to specify the fromGenerator. With int, which seems to generate the same problem.