CheckoutModel.fromMap constructor

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

Implementation

factory CheckoutModel.fromMap(Map<String, dynamic> map) {
  return CheckoutModel(
    step: map['step'],
    totalPrice: map['totalPrice'],
    productList: map['productList'],
    orderNo: map['orderNo'],
    currency: map['currency'],
    sessionId: map['sessionId'],
    userId: map['userId'],
    device: map['device'],
    os: map['os'],
    lang: map['lang'],
  );
}