ApiResponse<T> class Null safety

Inheritance

Constructors

ApiResponse({bool? success = false, String? message, T? data})
ApiResponse.fromJson(Map<String, dynamic> json)
factory

Properties

data ↔ T?
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
message ↔ String?
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, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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