CreatePaymentAttributes.fromMap constructor

CreatePaymentAttributes.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory CreatePaymentAttributes.fromMap(Map<String, dynamic> map) {
  return CreatePaymentAttributes(
    amount: map['amount'] ?? 0.0,
    description: map['description'] ?? '',
    currency: map['currency'] ?? '',
    statementDescriptor: map['statementDescriptor'] ?? '',
    source: PaymentSource.fromMap(map['source']),
  );
}