toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'customer': {
      'fullName': customer.fullName,
      'email': customer.email,
    },
    'amount': amount,
    'method': method,
    'transactionId': transactionId,
    'time': time.toIso8601String(),
    'status': status,
  };
}