withCustomSerializers function

Expression withCustomSerializers(
  1. Expression serializersExpression,
  2. Set<Expression> customSerializers
)

Implementation

Expression withCustomSerializers(
  Expression serializersExpression,
  Set<Expression> customSerializers,
) =>
    customSerializers.fold(
      serializersExpression,
      (exp, serializer) => exp.cascade("add").call([serializer]),
    );