There might still be a way to simplify this further by convincing GSON to help out more! But I haven't tried it.