/* tslint:disable */ /* eslint-disable */ /** * Geocoding * With the Geocoding service you can find locations by converting street addresses into GPS-coordinates and vice versa. The Places service allows to search for millions of shops and prominent points of interest in various categories. * * The version of the OpenAPI document: 1.18 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * A search text suggested for the input of the searchLocationsByText endpoint. * @export * @interface Suggestion */ export interface Suggestion { /** * A search address suggestion that can be displayed on a user interface as caption. * @type {string} * @memberof Suggestion */ caption: string; /** * An additional address information for the suggestion that can be displayed on a user interface as sub caption. * @type {string} * @memberof Suggestion */ subCaption: string; /** * The suggested search text to pass to the searchLocationsByText endpoint to retrieve the corresponding locations. * @type {string} * @memberof Suggestion */ searchText?: string; } /** * Check if a given object implements the Suggestion interface. */ export function instanceOfSuggestion(value: object): value is Suggestion { if (!('caption' in value) || value['caption'] === undefined) return false; if (!('subCaption' in value) || value['subCaption'] === undefined) return false; return true; } export function SuggestionFromJSON(json: any): Suggestion { return SuggestionFromJSONTyped(json, false); } export function SuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Suggestion { if (json == null) { return json; } return { 'caption': json['caption'], 'subCaption': json['subCaption'], 'searchText': json['searchText'] == null ? undefined : json['searchText'], }; } export function SuggestionToJSON(json: any): Suggestion { return SuggestionToJSONTyped(json, false); } export function SuggestionToJSONTyped(value?: Suggestion | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'caption': value['caption'], 'subCaption': value['subCaption'], 'searchText': value['searchText'], }; }