toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'customer': customer.toJson(),
'createdAt': createdAt.toIso8601String(),
'status': status,
'paymentMethod': paymentMethod,
'deliveryAddress': deliveryAddress,
'totalPrice': totalPrice,
'notse': notse,
};