public class MailchimpObject
Base class for all objects wrapping the request and response bodies of MailChimp API calls.
| Modifier and Type | Class and Description |
|---|---|
static class |
MailchimpObject.Companion |
| Modifier and Type | Field and Description |
|---|---|
static MailchimpObject.Companion |
Companion |
java.util.Map<java.lang.String,java.lang.Object> |
mapping
Map representation of this object.
|
| Constructor and Description |
|---|
MailchimpObject()
Base class for all objects wrapping the request and response bodies of MailChimp API calls.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
static <T extends MailchimpObject> |
fromJson(java.lang.String json,
java.lang.Class<T> clazz)
Deserializes an object from JSON.
|
int |
hashCode() |
java.lang.String |
toJson()
Serializes this object to JSON.
|
java.lang.String |
toString() |
public java.util.Map<java.lang.String,java.lang.Object> mapping
Map representation of this object.
Some entries in the map are "regular" mappings, whereas others are "reflective" ones.
Reflective mappings are represented by fields marked with interface Field.
Changes in such fields are reflected in the map and vice versa.
Reflective mappings cannot be removed from this map.
interface Fieldpublic static MailchimpObject.Companion Companion
public MailchimpObject()
Base class for all objects wrapping the request and response bodies of MailChimp API calls.
public java.lang.String toJson()
Serializes this object to JSON.
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public static <T extends MailchimpObject> T fromJson(java.lang.String json, java.lang.Class<T> clazz)
Deserializes an object from JSON.