parseList property

List<Book> Function(dynamic value) parseList

Parses List of Book instances from a given value.

Value can be one of the following:

  • Iterable of dynamic - then each object will be decoded same way as parse and resulting Iterable will be returned.
  • Iterable of Book - then value will be returned as-is.

Implementation

static List<Book> Function(dynamic value) get parseList =>
  BookMapper.container.fromValue<List<Book>>;