PostItemModel class
PostItemModel This is PostItemModel Model class
Constructors
-
PostItemModel({String? kind, String? id, String? blogId, DateTime? published, DateTime? updated, String? url, String? error, String? selfLink, String? title, String? content, Author? author, Replies? replies, String? etag, List<
String> ? labels}) - PostItemModel.fromJson(String source)
-
This is will help us to create object from json input
factory
-
PostItemModel.fromMap(Map<
String, dynamic> map) -
This is will help us to create object from Map
factory
Properties
-
This is Author type it have all the author parameters
final
- blogId → String?
-
final
- content → String?
-
final
- error → String?
-
final
- etag → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- kind → String?
-
final
-
labels
→ List<
String> ? -
final
- published → DateTime?
-
final
- replies → Replies?
-
This is Replies type it have all the replies parameters
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink → String?
-
final
- title → String?
-
final
- updated → DateTime?
-
final
- url → String?
-
final
Methods
-
copyWith(
{String? kind, String? id, String? blogId, DateTime? published, DateTime? updated, String? url, String? selfLink, String? title, String? content, Author? author, Replies? replies, String? etag, List< String> ? labels}) → PostItemModel -
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