NkResponse<T> class
Constructors
-
NkResponse({bool? success, int? quantity, T? data, List<
ErrorData> ? errorData, int? id}) -
NkResponse.fromJson(Map<
String, dynamic> json, T fromJson(String)) -
factory
Properties
- data ↔ T?
-
getter/setter pair
-
errorData
↔ List<
ErrorData> ? -
getter/setter pair
- exception ↔ Object?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpResponse ↔ Response?
-
getter/setter pair
- id ↔ int?
-
getter/setter pair
- quantity ↔ int?
-
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(
Map< String, String> toJson(T)) → Map<String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited