Class MapToJsonConverter<K,V>

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 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>