SendResponseModel class sealed

Available extensions
Annotations
  • @freezed

Constructors

SendResponseModel.new({@Default('') String url, @Default('') String method, dynamic data, @Default({}) Map<String, dynamic> queryParams, @Default(0) int statusCode, @JsonKey(toJson: _toJsonByData) dynamic body, @Default({}) Map<String, dynamic> headers, @Default({}) Map<String, dynamic> responseHeaders, @Default(0) int timestamp, @Default('') String projectName, @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) Response? response, @Default([]) List<String> extendNotes})
factory
SendResponseModel.fromJson(dynamic json)
factory

Properties

body → dynamic
no setterinherited
copyWith → $SendResponseModelCopyWith<SendResponseModel>
Create a copy of SendResponseModel with the given fields replaced by the non-null parameter values.
no setterinherited
data → dynamic
no setterinherited
extendNotes List<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
no setterinherited
method String
no setterinherited
projectName String
no setterinherited
queryParams Map<String, dynamic>
no setterinherited
response → Response?
no setterinherited
responseHeaders Map<String, dynamic>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
no setterinherited
timestamp int
no setterinherited
url String
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_SendResponseModel value)) → TResult

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_SendResponseModel value)?) → TResult?

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_SendResponseModel value)?, {required TResult orElse()}) → TResult

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String url, String method, dynamic data, Map<String, dynamic> queryParams, int statusCode, dynamic body, Map<String, dynamic> headers, Map<String, dynamic> responseHeaders, int timestamp, String projectName, Response? response, List<String> extendNotes)?, {required TResult orElse()}) → TResult

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(SocketConnect socketConnect) Future<void>

Available on SendResponseModel, provided by the SocetResponseModelExt extension

toJson() Map<String, dynamic>
Serializes this SendResponseModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String url, String method, dynamic data, Map<String, dynamic> queryParams, int statusCode, dynamic body, Map<String, dynamic> headers, Map<String, dynamic> responseHeaders, int timestamp, String projectName, Response? response, List<String> extendNotes)) → TResult

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String url, String method, dynamic data, Map<String, dynamic> queryParams, int statusCode, dynamic body, Map<String, dynamic> headers, Map<String, dynamic> responseHeaders, int timestamp, String projectName, Response? response, List<String> extendNotes)?) → TResult?

Available on SendResponseModel, provided by the SendResponseModelPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited