On this page

new SerializerMiddleware(): SerializerMiddleware
< <DeserializedType> , <SerializedType> , <Context> >
deserialize(data, context): void
  • data {SerializedType}
  • context {Context}
  • Returns: <DeserializedType> | <Promise><<DeserializedType>>

Restores this instance from the provided deserializer context.


serialize(data, context): void
  • data {DeserializedType}
  • context {Context}
  • Returns: <SerializedType> | <Promise><<SerializedType>> | <null>

Serializes this instance into the provided serializer context.