java.lang.Object
com.google.cloud.spanner.r2dbc.springdata.MapToJsonConverter<K,V>
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<Map <K,V>,com.google.cloud.spanner.r2dbc.v2.JsonWrapper>
@WritingConverter
public class MapToJsonConverter<K,V>
extends Object
implements org.springframework.core.convert.converter.Converter<Map <K,V>,com.google.cloud.spanner.r2dbc.v2.JsonWrapper>
Map to JsonWrapper Converter.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
com.google.cloud.spanner.r2dbc.v2.JsonWrapper
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
Constructor Details
MapToJsonConverter
@Autowired
public MapToJsonConverter (com.google.gson.Gson gson)
Method Details
convert
public com.google.cloud.spanner.r2dbc.v2.JsonWrapper convert (Map <K ,V > source)
Specified by:
convert
in interface org.springframework.core.convert.converter.Converter<K ,V >