deserialize method

Stream<Object?> deserialize(
  1. Serializers serializers,
  2. Iterable serialized, {
  3. FullType specifiedType = FullType.unspecified,
})

Implementation

Stream<Object?> deserialize(Serializers serializers, Iterable serialized,
    {FullType specifiedType = FullType.unspecified}) async* {
  var elementType = specifiedType.parameters.isEmpty
      ? FullType.unspecified
      : specifiedType.parameters[0];

  for (var item in serialized) {
    yield serializers.deserialize(item, specifiedType: elementType);
  }
}