Publisher constructor

Publisher({
  1. required String name,
  2. @JsonKey.new(readValue: _readPublisherBooks) @Default.new([]) List<Book> books,
})

Implementation

factory Publisher({
  /// The name of this publisher
  required String name,

  /// The list of the books this publisher published
  @JsonKey(readValue: _readPublisherBooks) @Default([]) List<Book> books,
}) = _Publisher;