toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id == null ? null : id,
"product_id": productId == null ? null : productId,
"order_id": orderId == null ? null : orderId,
"status": status == null ? null : status,
"deleted_at": deletedAt,
"created_at": createdAt == null ? null : createdAt!.toIso8601String(),
"updated_at": updatedAt == null ? null : updatedAt!.toIso8601String(),
"product": product == null ? null : product!.toJson(),
};