Subject class

An object which returns the name of a subject and the list of the books related to this subject.

Annotations
  • @freezed

Constructors

Subject({required String subject, @Default([]) List<Book> books})
factory
Subject.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 matching this subject
no setterinherited
copyWith → $SubjectCopyWith<Subject>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String
The subject
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