PageModel class
PageModel This is PageModel Model class
Constructors
-
PageModel({String? kind, List<
PostItemModel> ? items, String? etag, String? error}) - PageModel.fromJson(String source)
-
This is will help us to create object from json input
factory
-
PageModel.fromMap(Map<
String, dynamic> map) -
This is will help us to create object from Map
factory
Properties
- error → String?
-
final
- etag → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
PostItemModel> ? -
This is PostItemModel type it have all the post parameters
final
- kind → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? kind, List< PostItemModel> ? items, String? etag, String? error}) → PageModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> - This is will help us to create Map Data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited