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