Author class

Author This is Author Model class this model have id displayname url imageUrl

Constructors

Author({String? id, String? displayName, String? url, String? image})
Author.fromJson(String source)
This is will help us to create object from json input
factory
Author.fromMap(Map<String, dynamic> map)
This is will help us to create object from Map
factory

Properties

displayName String?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
image String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
final

Methods

copyWith({String? id, String? displayName, String? url, String? image}) Author
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