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