JsonKey<T, Serialized>.parser constructor

JsonKey<T, Serialized>.parser(
  1. String key,
  2. T parser(
    1. Serialized
    )
)

Create a JsonKey that parses a value from json.

Implementation

JsonKey.parser(this.key, T Function(Serialized) parser)
    : _state = _ParserState(parser),
      super();