toJson method
Converts a StarTransaction object to json.
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'amount': amount,
'date': date,
'source': source?.toJson(),
'receiver': receiver?.toJson(),
};
}
Converts a StarTransaction object to json.
Map<String, dynamic> toJson() {
return {
'id': id,
'amount': amount,
'date': date,
'source': source?.toJson(),
'receiver': receiver?.toJson(),
};
}