public static < T extends MailChimpObject > T fromJson ( String json , Class < T > clazz ) { try { return MailChimpGsonFactory . createGson ( ) . fromJson ( json , clazz ) ; } catch ( JsonParseException e ) { throw new IllegalArgumentException ( e ) ; } }
Deserializes an object from JSON .