ApiResponse<T> class

Constructors

ApiResponse.new({String? timestamp, int? code, String? status, String? message, T? data})
ApiResponse.fromJson(Map<String, dynamic> json, T create(Map<String, dynamic>))
factory

Properties

code int?
getter/setter pair
data ↔ T?
getter/setter pair
getException → dynamic
no setter
hashCode int
The hash code for this object.
no setterinherited
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
getter/setter pair
timestamp String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(Map map, T builder(Map<String, dynamic> data)) → dynamic
setException(String error) → dynamic
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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