APIResponder<T> class abstract

Constructors

APIResponder({bool? success, int? code, String? message, T? data, List<T>? dataList, String? extra})
APIResponder.fromJson(Map<String, dynamic> json, {FromJsonT<T>? fromJsonT, ParseJsonT<T>? parseJsonT})
factory

Properties

code int?
getter/setter pair
data ↔ T?
getter/setter pair
dataList List<T>?
getter/setter pair
error APIError?
no setter
extra String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
no setter
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([ToJsonT<T>? toJsonT]) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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