parse property

Book Function(dynamic value) parse

Parses Book instance from a given value.

Value can be one of the following:

  • Map - then object will be parsed into Book object.
  • Book - then value will be returned as-is.

Implementation

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