Class JsonToMapConverter<K,V>

java.lang.Object
com.google.cloud.spanner.r2dbc.springdata.JsonToMapConverter<K,V>
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<com.google.cloud.spanner.r2dbc.v2.JsonWrapper,Map<K,V>>

@ReadingConverter public class JsonToMapConverter<K,V> extends Object implements org.springframework.core.convert.converter.Converter<com.google.cloud.spanner.r2dbc.v2.JsonWrapper,Map<K,V>>
JsonWrapper to Map converter.
  • Constructor Details

    • JsonToMapConverter

      @Autowired public JsonToMapConverter(com.google.gson.Gson gson)
  • Method Details

    • convert

      public Map<K,V> convert(com.google.cloud.spanner.r2dbc.v2.JsonWrapper json) throws com.google.gson.JsonSyntaxException
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<K,V>
      Throws:
      com.google.gson.JsonSyntaxException