ResponseBodyApi<T> class

Constructors

ResponseBodyApi({bool? success, String? code, String? message, T? data})
ResponseBodyApi.fromJson(String source)
factory
ResponseBodyApi.fromMap(Map<String, dynamic> map)
factory

Properties

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

Methods

copyWith({bool? success, String? code, String? message, T? data}) → ResponseBodyApi<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object o) → bool
The equality operator.
override