OrderModel.fromJson constructor

OrderModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OrderModel.fromJson(Map<String, dynamic> json) => OrderModel(
  id: json['id'],
  customer: OrganizationModel.fromJson(json['customer']),
  createdAt: DateTime.parse(json['createdAt']),
  status: json['status'],
  paymentMethod: json['paymentMethod'],
  deliveryAddress: json['deliveryAddress'],
  totalPrice: json['totalPrice'],
  notse: json['notse'],
);