/* 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 HighlightMetadataBlockExtensionContextTextRangeStart */ export interface HighlightMetadataBlockExtensionContextTextRangeStart { /** * * @type {string} * @memberof HighlightMetadataBlockExtensionContextTextRangeStart */ 'sentence': string; /** * * @type {string} * @memberof HighlightMetadataBlockExtensionContextTextRangeStart */ 'closestPath': string; } /** * Check if a given object implements the HighlightMetadataBlockExtensionContextTextRangeStart interface. */ export function instanceOfHighlightMetadataBlockExtensionContextTextRangeStart(value: object): value is HighlightMetadataBlockExtensionContextTextRangeStart { if (!('sentence' in value) || value['sentence'] === undefined) return false; if (!('closestPath' in value) || value['closestPath'] === undefined) return false; return true; } export function HighlightMetadataBlockExtensionContextTextRangeStartFromJSON(json: any): HighlightMetadataBlockExtensionContextTextRangeStart { return HighlightMetadataBlockExtensionContextTextRangeStartFromJSONTyped(json, false); } export function HighlightMetadataBlockExtensionContextTextRangeStartFromJSONTyped(json: any, ignoreDiscriminator: boolean): HighlightMetadataBlockExtensionContextTextRangeStart { if (json == null) { return json; } const result = { } as HighlightMetadataBlockExtensionContextTextRangeStart; if (json['sentence'] !== undefined) { result['sentence'] = json['sentence']; } if (json['closestPath'] !== undefined) { result['closestPath'] = json['closestPath']; } return result; } export function HighlightMetadataBlockExtensionContextTextRangeStartToJSON(json: any): HighlightMetadataBlockExtensionContextTextRangeStart { return HighlightMetadataBlockExtensionContextTextRangeStartToJSONTyped(json, false); } export function HighlightMetadataBlockExtensionContextTextRangeStartToJSONTyped(value?: HighlightMetadataBlockExtensionContextTextRangeStart | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sentence': value['sentence'], 'closestPath': value['closestPath'], }; }