Converts the instance to a map
Map<String, dynamic> toMap() { return { 'id': id, 'amount': amount, 'createdAt': createdAt, 'metadata': metadata, }; }