Publisher class

An object which returns the name of a publisher and the list of the books he published.

Annotations
  • @freezed

Constructors

Publisher({required String name, @Default([]) List<Book> books})
factory
Publisher.fromJson(Map<String, dynamic> json)
Used to build the object from the response of the ISBNdb API
factory

Properties

books List<Book>
The list of the books this publisher published
no setterinherited
copyWith → $PublisherCopyWith<Publisher>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this publisher
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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