I am aware of this question: How to fallback on a enum if values don't match in Moshi
However, it looks that Moshi in version 1.11.0 does not have EnumJsonAdapter
class included. (Importing does not work for package com.squareup.moshi.adapters;
)
How to fallback with null
when deserialized JSON value does not match the one in the enum
?