/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * 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 { ApplicationUser } from './ApplicationUser'; import { ApplicationUserFromJSON, ApplicationUserFromJSONTyped, ApplicationUserToJSON, ApplicationUserToJSONTyped, } from './ApplicationUser'; import type { OwnerLanguage } from './OwnerLanguage'; import { OwnerLanguageFromJSON, OwnerLanguageFromJSONTyped, OwnerLanguageToJSON, OwnerLanguageToJSONTyped, } from './OwnerLanguage'; import type { Track } from './Track'; import { TrackFromJSON, TrackFromJSONTyped, TrackToJSON, TrackToJSONTyped, } from './Track'; /** * * @export * @interface CopyRightOwner */ export interface CopyRightOwner { /** * * @type {number} * @memberof CopyRightOwner */ copyRightOwnerId?: number; /** * * @type {string} * @memberof CopyRightOwner */ name: string; /** * * @type {number} * @memberof CopyRightOwner */ price?: number; /** * * @type {string} * @memberof CopyRightOwner */ image?: string | null; /** * * @type {string} * @memberof CopyRightOwner */ slug: string; /** * * @type {string} * @memberof CopyRightOwner */ container?: string | null; /** * * @type {OwnerLanguage} * @memberof CopyRightOwner */ language?: OwnerLanguage; /** * * @type {Date} * @memberof CopyRightOwner */ createDate?: Date; /** * * @type {Date} * @memberof CopyRightOwner */ changeDate?: Date; /** * * @type {Array} * @memberof CopyRightOwner */ tracks?: Array | null; /** * * @type {Array} * @memberof CopyRightOwner */ applicationUsers?: Array | null; } /** * Check if a given object implements the CopyRightOwner interface. */ export function instanceOfCopyRightOwner(value: object): value is CopyRightOwner { if (!('name' in value) || value['name'] === undefined) return false; if (!('slug' in value) || value['slug'] === undefined) return false; return true; } export function CopyRightOwnerFromJSON(json: any): CopyRightOwner { return CopyRightOwnerFromJSONTyped(json, false); } export function CopyRightOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyRightOwner { if (json == null) { return json; } return { 'copyRightOwnerId': json['CopyRightOwnerId'] == null ? undefined : json['CopyRightOwnerId'], 'name': json['Name'], 'price': json['Price'] == null ? undefined : json['Price'], 'image': json['Image'] == null ? undefined : json['Image'], 'slug': json['Slug'], 'container': json['Container'] == null ? undefined : json['Container'], 'language': json['Language'] == null ? undefined : OwnerLanguageFromJSON(json['Language']), 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'tracks': json['Tracks'] == null ? undefined : ((json['Tracks'] as Array).map(TrackFromJSON)), 'applicationUsers': json['ApplicationUsers'] == null ? undefined : ((json['ApplicationUsers'] as Array).map(ApplicationUserFromJSON)), }; } export function CopyRightOwnerToJSON(json: any): CopyRightOwner { return CopyRightOwnerToJSONTyped(json, false); } export function CopyRightOwnerToJSONTyped(value?: CopyRightOwner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'CopyRightOwnerId': value['copyRightOwnerId'], 'Name': value['name'], 'Price': value['price'], 'Image': value['image'], 'Slug': value['slug'], 'Container': value['container'], 'Language': OwnerLanguageToJSON(value['language']), 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'Tracks': value['tracks'] == null ? undefined : ((value['tracks'] as Array).map(TrackToJSON)), 'ApplicationUsers': value['applicationUsers'] == null ? undefined : ((value['applicationUsers'] as Array).map(ApplicationUserToJSON)), }; }