serialize<T> function

List serialize<T>(
  1. T object,
  2. ObjectSerializerCollection collection
)

Implementation

List serialize<T>(T object, ObjectSerializerCollection collection) {
  final serializer = Serializer(collection: collection);
  return serializer.serialize(object);
}