AxelorListModel<T> class

Annotations
  • @JsonSerializable(genericArgumentFactories: true)

Constructors

AxelorListModel(int? status, int? offset, int? total, Map<String, dynamic>? errors, List<T>? data)
const

Properties

canLoadMore bool
no setter
data List<T>?
final
errors Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setterinherited
haveData bool
no setter
isEmpty bool
no setter
nextPage int
no setter
offset int?
final
page int
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int?
status 0 success -1 failure -4 validation error
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
total int?
final

Methods

copyWith({int? status, int? offset, int? total, Map<String, dynamic>? errors, List<T>? data}) AxelorListModel<T>
merge(AxelorListModel<T> newObject) AxelorListModel<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(Object toJsonT(T value)) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

dataTypeMapper<R>(R fromJsonT(Object?)) List<R> Function(Object?)
defaultParams<T>() AxelorListModel<T>
fromJson<R>(R fromJsonT(Object)) AxelorListModel<R> Function(Object?)
fromJsonAsSingle<R>(R fromJsonT(Object)) → R Function(Object?)
mock<R>({required int total, required List<R> data}) AxelorListModel<R>
successMock<R>({required int total, required List<R> data}) AxelorResult<AxelorListModel<R>>