NkResponse<T> class Null safety

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?
read / write
errorData List<ErrorData>?
read / write
exception Object?
read / write
hashCode int
The hash code for this object.
read-onlyinherited
httpResponse Response?
read / write
id int?
read / write
quantity int?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
success bool?
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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