/* 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'; import type { Announcement } from './Announcement'; import { AnnouncementFromJSON, AnnouncementFromJSONTyped, AnnouncementToJSON, } from './Announcement'; /** * * @export * @interface Announcements */ export interface Announcements { /** * * @type {number} * @memberof Announcements */ code: number; /** * * @type {string} * @memberof Announcements */ message?: string; /** * * @type {Array} * @memberof Announcements */ announcements: Array; } /** * Check if a given object implements the Announcements interface. */ export function instanceOfAnnouncements(value: object): value is Announcements { if (!('code' in value) || value['code'] === undefined) return false; if (!('announcements' in value) || value['announcements'] === undefined) return false; return true; } export function AnnouncementsFromJSON(json: any): Announcements { return AnnouncementsFromJSONTyped(json, false); } export function AnnouncementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Announcements { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'announcements': ((json['announcements'] as Array).map(AnnouncementFromJSON)), }; } export function AnnouncementsToJSON(value?: Announcements | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'announcements': ((value['announcements'] as Array).map(AnnouncementToJSON)), }; }