asObjectList<E, T> method

List<T> asObjectList<E, T>(
  1. ObjectTransformer<E, T> transformer,
  2. {bool skipNullValues = false}

Returns this decoded value as a list of dart objects (specified by T), built using transformer).

If skipNullValues is set to true, transformation is no applied when a null value is encountered.

Throws a JsonTransformationError if:

  • transformer is null.
  • E could not represent an encodable object.
  • this decoded value is not an instance of T.


List<T> asObjectList<E, T>(ObjectTransformer<E, T> transformer,
        {bool skipNullValues = false}) =>
    transformObjectList<E, T>(value, transformer, skipNullValues);