MetaData class
Base meta when receive data from a API
Constructors
- MetaData({required String? message, required bool success, Pagination? pagination})
-
MetaData.fromJson(Map<
String, dynamic> json) -
Mapping data MetaData from Map or Json data
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Message base from data API, message success or message failure
final
- pagination → Pagination?
-
Pagination data
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
When success is true, otherwise false
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Generate MetaData toMap
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited