PaymayaBuyer.fromMap constructor
The PaymayaBuyer will be inserted after the redirect url response.
Implementation
factory PaymayaBuyer.fromMap(Map<String, dynamic> map) {
return PaymayaBuyer(
firstName: map['firstName'] ?? '',
middleName: map['middleName'] ?? '',
lastName: map['lastName'] ?? '',
birthday: map['birthday'] ?? '',
customerSince: map['customerSince'] ?? '',
sex: map['sex'],
contact: PaymayaContact.fromMap(map['contact']),
shippingAddress: PaymayaShippingAddress.fromMap(map['shippingAddress']),
billingAddress: PaymayaBillingAddress.fromMap(map['billingAddress']),
);
}