decode method

  1. @override
T? decode(
  1. dynamic json,
  2. NyResponse response,
  3. Map<Type, dynamic> decoders
)
override

Decodes json into a T.

response is the response being decoded and decoders is the map this decoder was found in, so it can hand off to other decoders.

Implementation

@override
T? decode(dynamic json, NyResponse response, Map<Type, dynamic> decoders) =>
    resolve(json, response);