PaymentMethodModel.fromMap constructor

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

Implementation

factory PaymentMethodModel.fromMap(Map<String, dynamic> map) {
  return PaymentMethodModel(
    id: map['id'],
    description: map['description'],
    itemType: map['item_type'],
    data: PaymentMethodData.fromMap(map['data']),
  );
}