Converting object to an encodable object failed: Instance code example
Example: error = Converting object to an encodable object failed: Instance of 'SendCart'
class LinkItem {
final String name;
final String url;
LinkItem({this.name, this.url});
LinkItem.fromJson(Map<String, dynamic> json)
: name = json['n'],
url = json['u'];
Map<String, dynamic> toJson() {
return {
'n': name,
'u': url,
};
}
}