/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * 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'; /** * * @export * @interface StoreLocationResource */ export interface StoreLocationResource { /** * * @type {number} * @memberof StoreLocationResource */ latitude: number; /** * * @type {number} * @memberof StoreLocationResource */ longitude: number; } /** * Check if a given object implements the StoreLocationResource interface. */ export function instanceOfStoreLocationResource(value: object): value is StoreLocationResource { if (!('latitude' in value) || value['latitude'] === undefined) return false; if (!('longitude' in value) || value['longitude'] === undefined) return false; return true; } export function StoreLocationResourceFromJSON(json: any): StoreLocationResource { return StoreLocationResourceFromJSONTyped(json, false); } export function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource { if (json == null) { return json; } return { 'latitude': json['latitude'], 'longitude': json['longitude'], }; } export function StoreLocationResourceToJSON(json: any): StoreLocationResource { return StoreLocationResourceToJSONTyped(json, false); } export function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'latitude': value['latitude'], 'longitude': value['longitude'], }; }