write abstract method
Converts the value to JSON format.
@param value The value of type T to convert to JSON.
@param type The type information describing the value.
@param options The serializer options containing configuration.
@returns The JSON-compatible representation of the value.
Implementation
Object? write(T value, TypeInfo type, JsonSerializerOptions options);