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

Constructors

BodyDataModel()

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