serialize abstract method

Object? serialize(
  1. T value,
  2. ObjectMapper mapper
)

Returns the JSON form of value: null, a bool, a number, a string, or a list or map, whose elements the mapper writes in turn. mapper is the mapper at work, for writing nested values with its settings.

Implementation

Object? serialize(T value, ObjectMapper mapper);