BodyDataModel class abstract
A base class for all body data models.
This class provides a common structure for all body data models, including methods to convert the model to JSON and FormData. It is designed to be used with HTTP POST and PUT requests, where the body of the request needs to be sent as JSON or FormData.
All body data models should inherit from this class and implement the toPostJson
, toPutJson
, and toFormData
methods.
- Implementers
- AddressBody
- AssignedCatalogBody
- BlogBody
- BrandBody
- CampaignBody
- CatalogBody
- CategoryBody
- FeatureBody
- ForgotPasswordBody
- InStockBody
- LoginBody
- MailTemplateBody
- NotificationBody
- OrderAssignBody
- OrderPutBody
- OrderRefundBody
- OrderRefundItemBody
- OutStockBody
- PhotoBody
- PhotoFolderBody
- PhotoMultipleBody
- PriceBody
- PriceGroupBody
- PriceMultiplePutBody
- ProductBody
- ProductCatalogBody
- ProductCatalogMultipleBody
- ProductDetailBody
- ProductDetailDetailBody
- ProductDetailPriceBody
- ProductDetailSectionBody
- ProductDetailStockBody
- ProductMultipleDeleteBody
- ProductMultiplePutBody
- ProductRatingPutBody
- ProfileEmailChangeBody
- ProfilePasswordChangeBody
- ProfilePutBody
- PromoCodeBody
- RoleBody
- RoleGroupBody
- RolePermissionBody
- StockListPutBody
- StoreRatingPutBody
- StoreSettingAnalyticPutBody
- StoreSettingCampaignPutBody
- StoreSettingCurrencyPutBody
- StoreSettingCurrencyRatePutBody
- StoreSettingCustomerPutBody
- StoreSettingEmailPutBody
- StoreSettingOrderPutBody
- StoreSettingProductPutBody
- StoreSettingPutBody
- StoreSettingSmsPutBody
- StoreShipmentMethodBody
- StoreShipmentMethodCashOnDeliveryBody
- StoreShipmentMethodCashOnDeliveryPriceBody
- StoreShipmentMethodPriceBody
- StoreTypeBody
- SupplierBody
- TagBody
- TaxBody
- ThemeBody
- TicketAssignPutBody
- TicketBody
- TicketCategoryBody
- TicketMessageBody
- TransferBody
- TransferCompleteBody
- TransferStockBody
- UserBody
- UserDetailBody
- UserGroupBody
- UserRoleBody
- VariantBody
- VariantGroupBody
- VariantMultipleBody
- VehicleBody
- WarehouseBody
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFormData(
) → Future< FormData?> ? - Converts the body data model to a FormData object.
-
toPostJson(
) → Map< String, dynamic> ? - Converts the body data model to a JSON object for a POST request.
-
toPutJson(
) → Map< String, dynamic> ? - Converts the body data model to a JSON object for a PUT request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited