public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { ThingTypeProperties thingTypeProperties = new ThingTypeProperties();
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeProperties thingTypeProperties = new ThingTypeProperties(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeDescription")) { thingTypeProperties.setThingTypeDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("searchableAttributes")) { thingTypeProperties.setSearchableAttributes(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeProperties; }
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeProperties thingTypeProperties = new ThingTypeProperties(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeDescription")) { thingTypeProperties.setThingTypeDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("searchableAttributes")) { thingTypeProperties.setSearchableAttributes(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeProperties; }
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { ThingTypeProperties thingTypeProperties = new ThingTypeProperties();