/* 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 SignBody */ export interface SignBody { /** * * @type {number} * @memberof SignBody */ code: number; /** * * @type {string} * @memberof SignBody */ message?: string; /** * * @type {string} * @memberof SignBody */ sign_body: string; } /** * Check if a given object implements the SignBody interface. */ export function instanceOfSignBody(value: object): value is SignBody { if (!('code' in value) || value['code'] === undefined) return false; if (!('sign_body' in value) || value['sign_body'] === undefined) return false; return true; } export function SignBodyFromJSON(json: any): SignBody { return SignBodyFromJSONTyped(json, false); } export function SignBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignBody { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'sign_body': json['sign_body'], }; } export function SignBodyToJSON(value?: SignBody | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'sign_body': value['sign_body'], }; }