BlogsModel class
BlogsModel This is BlogsModel Model class Here we are using BlogPost BlogPage BlogLocale
Constructors
- BlogsModel({String? kind, String? id, String? name, String? description, DateTime? published, DateTime? updated, String? url, String? selfLink, String? error, BlogPost? posts, BlogPage? pages, BlogLocale? locale})
- BlogsModel.fromJson(String source)
-
This is will help us to create object from json input
factory
-
BlogsModel.fromMap(Map<
String, dynamic> map) -
This is will help us to create object from Map
factory
Properties
- description → String?
-
final
- error → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- kind → String?
-
final
- locale → BlogLocale?
-
This is BlogLocale type it have all the locale parameters
final
- name → String?
-
final
- pages → BlogPage?
-
This is BlogPage type it have all the pages parameters
final
- posts → BlogPost?
-
This is BlogPost type it have all the posts parameters
final
- published → DateTime?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink → String?
-
final
- updated → DateTime?
-
final
- url → String?
-
final
Methods
-
copyWith(
{String? kind, String? id, String? name, String? description, DateTime? published, DateTime? updated, String? url, String? selfLink, String? error, BlogPost? posts, BlogPage? pages, BlogLocale? locale}) → BlogsModel -
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