toJson method

Map<String, dynamic> toJson()

Converts a StarTransaction object to json.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'amount': amount,
    'date': date,
    'source': source?.toJson(),
    'receiver': receiver?.toJson(),
  };
}