public abstract class ShieldSvg extends DirectionsJsonObject implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ShieldSvg.Builder
This builder can be used to set the values describing the
ShieldSvg. |
| Constructor and Description |
|---|
ShieldSvg() |
| Modifier and Type | Method and Description |
|---|---|
static ShieldSvg.Builder |
builder()
Create a new instance of this class by using the
ShieldSvg.Builder class. |
static ShieldSvg |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
svg()
SVG.
|
abstract ShieldSvg.Builder |
toBuilder()
Convert the current
ShieldSvg to its builder holding the currently assigned
values. |
java.lang.String |
toJson()
|
static com.google.gson.TypeAdapter<ShieldSvg> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedPropertypublic static ShieldSvg.Builder builder()
ShieldSvg.Builder class.ShieldSvg.Builder for creating a new instance@NonNull public static ShieldSvg fromJson(@NonNull java.lang.String json)
json - a formatted valid JSON string defining a shield sprite@NonNull public abstract java.lang.String svg()
public abstract ShieldSvg.Builder toBuilder()
ShieldSvg to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified ShieldSvg.ShieldSvg.Builder with the same values set to match the ones defined
in this ShieldSvg@NonNull public java.lang.String toJson()
ShieldSvg instance and
converts it to a ShieldSvg string.toJson in class DirectionsJsonObjectShieldSvgpublic static com.google.gson.TypeAdapter<ShieldSvg> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object