toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"nftoken_id": nftokenId,
"amount": amount.toJson(),
"owner": owner,
"expiration": expiration,
"destination": destination,
...super.toJson()
};
}