serializeAllWith<T> method

Iterable<Object?> serializeAllWith<T>(
  1. Serializer<T> serializer,
  2. Object object
)

Serialize the collection of objects using Serializer.

Implementation

Iterable<Object?> serializeAllWith<T>(
  Serializer<T> serializer,
  Object object,
) {
  return (object as Iterable<Object>).map((object) => serializeWith<T>(serializer, object as T));
}