OrderModel.fromJson constructor
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'],
);