2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.spotify.internal.api.model;
15 import com.google.gson.FieldNamingPolicy;
16 import com.google.gson.Gson;
17 import com.google.gson.GsonBuilder;
20 * Util class to get the Gson instance used to parse the Spotify data.
22 * @author Hilbrand Bouwkamp - Initial contribution
24 public final class ModelUtil {
25 private static final Gson GSON = new GsonBuilder()
26 .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
33 * @return Returns the Gson instance to parse the Spotify data.
35 public static Gson gsonInstance() {