RequestBodyDTO class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- RequestBodyDTO({required dynamic content, required String contentType, required bool isMultipart, required String type})
-
constfactory
- RequestBodyDTO.fromDataModel(RequestBody model)
-
factory
-
RequestBodyDTO.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content → dynamic
-
no setterinherited
- contentType → String
-
no setterinherited
-
copyWith
→ $RequestBodyDTOCopyWith<
RequestBodyDTO> -
Create a copy of RequestBodyDTO
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMultipart → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_RequestBodyDTO value)) → TResult -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_RequestBodyDTO value)?) → TResult? -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_RequestBodyDTO value)?, {required TResult orElse()}) → TResult -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(dynamic content, String contentType, bool isMultipart, String type)?, {required TResult orElse()}) → TResult -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDataModel(
) → RequestBody -
toJson(
) → Map< String, dynamic> -
Serializes this RequestBodyDTO to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(dynamic content, String contentType, bool isMultipart, String type)) → TResult -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(dynamic content, String contentType, bool isMultipart, String type)?) → TResult? -
Available on RequestBodyDTO, provided by the RequestBodyDTOPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited