DataResponse<T> class

Available Extensions

Constructors

DataResponse({required int statusCode, String? statusMessage, String? message, Map<String, dynamic>? errors, Map<String, dynamic>? data})
DataResponse.fromJson(Map<String, dynamic> json)
factory
DataResponse.fromMap(Map<String, dynamic> map)
factory
DataResponse.fromReponse(Response response)
factory

Properties

data Map<String, dynamic>?
getter/setter pair
errors Map<String, dynamic>?
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status bool
no setter
statusCode int
getter/setter pair
statusMessage String?
getter/setter pair

Methods

copyWith({int? statusCode, String? statusMessage, String? message, Map<String, dynamic>? errors, Map<String, dynamic>? data}) DataResponse<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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