deserializeIterable method

Object deserializeIterable (
  1. dynamic jsonValue,
  2. DeserializationContext context
)

Implementation

Object deserializeIterable(
    dynamic jsonValue, DeserializationContext context) {
  Iterable jsonList =
      (jsonValue is String) ? jsonDecoder.convert(jsonValue) : jsonValue;
  final value = jsonList != null
      ? jsonList
          .map((item) => deserializeObject(
              item,
              DeserializationContext(
                  context.options, getScalarType(context.instanceType))))
          .toList()
      : null;
  return applyValueDecorator(
      value, getTypeInfo(context.instanceType), context.parentMeta);
}