description

# JsonCodec.withReviver constructor

JsonCodec.withReviver(

1. dynamic reviver(
   1. Object? key,
   2. Object? value
   )

)

Creates a `JsonCodec` with the given reviver.

The `reviver` function is called once for each object or list property that has been parsed during decoding. The `key` argument is either the integer list index for a list property, the string map key for object properties, or `null` for the final result.

## Implementation

    JsonCodec.withReviver(dynamic Function(Object? key, Object? value) reviver)
      : this(reviver: reviver);