Author class

Annotations
  • @freezed

Constructors

Author.new({@JsonKey(name: 'name', required: true) required String name, @JsonKey(name: 'avatarUrl') String? avatarUrl, @JsonKey(name: 'authorId', required: true) required String authorId})
const
factory
Author.fromJson(Map<String, Object?> json)
factory

Properties

authorId String
Id of the author
no setterinherited
avatarUrl String?
Avatar URL of the author
no setterinherited
copyWith → $AuthorCopyWith<Author>
Create a copy of Author with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the author
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Author to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited