serialize abstract method
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);