toMap method

Map<String, dynamic> toMap()

Converts the instance to a map

Implementation

Map<String, dynamic> toMap() {
  return {
    'customerId': customerId,
    'amount': amount,
    'metadata': metadata,
  };
}