PaymentTokenRequest.fromMap constructor

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

Implementation

factory PaymentTokenRequest.fromMap(Map<String, dynamic> map) {
  return PaymentTokenRequest(
    accountId: map['account_id'],
    method: map['method'],
    test: map['test'],
    paymentData: PaymentInfoModel.fromMap(map['data']),
  );
}