/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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 ImageMetadataBlockAttributesLocation */ export interface ImageMetadataBlockAttributesLocation { /** * * @type {number} * @memberof ImageMetadataBlockAttributesLocation */ 'latitude'?: number | null; /** * * @type {number} * @memberof ImageMetadataBlockAttributesLocation */ 'longitude'?: number | null; } /** * Check if a given object implements the ImageMetadataBlockAttributesLocation interface. */ export function instanceOfImageMetadataBlockAttributesLocation(value: object): value is ImageMetadataBlockAttributesLocation { return true; } export function ImageMetadataBlockAttributesLocationFromJSON(json: any): ImageMetadataBlockAttributesLocation { return ImageMetadataBlockAttributesLocationFromJSONTyped(json, false); } export function ImageMetadataBlockAttributesLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageMetadataBlockAttributesLocation { if (json == null) { return json; } const result = { } as ImageMetadataBlockAttributesLocation; if (json['latitude'] !== undefined) { if (json['latitude'] === null) { result['latitude'] = null; } else { result['latitude'] = json['latitude']; } } if (json['longitude'] !== undefined) { if (json['longitude'] === null) { result['longitude'] = null; } else { result['longitude'] = json['longitude']; } } return result; } export function ImageMetadataBlockAttributesLocationToJSON(json: any): ImageMetadataBlockAttributesLocation { return ImageMetadataBlockAttributesLocationToJSONTyped(json, false); } export function ImageMetadataBlockAttributesLocationToJSONTyped(value?: ImageMetadataBlockAttributesLocation | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'latitude': value['latitude'], 'longitude': value['longitude'], }; }