toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'key': id,
'type': type,
'amount': amount,
'currency': currency,
'date': date,
'provider': signedAmount,
'status': status,
'title': title,
'color': statusColor,
};
}