Rfc3339 Date Json Adapter
Formats dates using RFC 3339, which is formatted like {@code 2015-09-26T18:23:50.250Z}
. This adapter is null-safe. To use, add this as an adapter for {@code Date.class}
on your Moshi.Builder:
{@code * Moshi moshi = new Moshi.Builder() * .add(Date.class, new Rfc3339DateJsonAdapter()) * .build(); * }
Functions
failOnUnknown
Link copied to clipboard
fromJsonValue
Link copied to clipboard
serializeNulls
Link copied to clipboard
toJsonValue
Link copied to clipboard