/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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 Search */ export interface Search { /** * * @type {number} * @memberof Search */ code: number; /** * * @type {string} * @memberof Search */ message?: string; /** * * @type {number} * @memberof Search */ data_type: number; } /** * Check if a given object implements the Search interface. */ export function instanceOfSearch(value: object): value is Search { if (!('code' in value) || value['code'] === undefined) return false; if (!('data_type' in value) || value['data_type'] === undefined) return false; return true; } export function SearchFromJSON(json: any): Search { return SearchFromJSONTyped(json, false); } export function SearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Search { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'data_type': json['data_type'], }; } export function SearchToJSON(value?: Search | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'data_type': value['data_type'], }; }