| Package | Description |
|---|---|
| com.squareup.moshi.adapters |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Enum<T>> |
EnumJsonAdapter.create(java.lang.Class<T> enumType) |
EnumJsonAdapter<T> |
EnumJsonAdapter.withUnknownFallback(T fallbackValue)
Create a new adapter for this enum with a fallback value to use when the JSON string does not
match any of the enum's constants.
|
Copyright © 2018. All Rights Reserved.