/* 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'; /** * * @export * @interface Place */ export interface Place { /** * * @type {number} * @memberof Place */ placeId?: number; /** * * @type {string} * @memberof Place */ name: string; /** * * @type {string} * @memberof Place */ address: string; /** * * @type {boolean} * @memberof Place */ enabled?: boolean; /** * * @type {string} * @memberof Place */ companyType?: string | null; /** * * @type {string} * @memberof Place */ square?: string | null; /** * * @type {string} * @memberof Place */ email?: string | null; /** * * @type {Date} * @memberof Place */ createDate?: Date; /** * * @type {Date} * @memberof Place */ changeDate?: Date; /** * * @type {ApplicationUser} * @memberof Place */ applicationUser: ApplicationUser; } /** * Check if a given object implements the Place interface. */ export function instanceOfPlace(value: object): value is Place { if (!('name' in value) || value['name'] === undefined) return false; if (!('address' in value) || value['address'] === undefined) return false; if (!('applicationUser' in value) || value['applicationUser'] === undefined) return false; return true; } export function PlaceFromJSON(json: any): Place { return PlaceFromJSONTyped(json, false); } export function PlaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Place { if (json == null) { return json; } return { 'placeId': json['PlaceId'] == null ? undefined : json['PlaceId'], 'name': json['Name'], 'address': json['Address'], 'enabled': json['Enabled'] == null ? undefined : json['Enabled'], 'companyType': json['CompanyType'] == null ? undefined : json['CompanyType'], 'square': json['Square'] == null ? undefined : json['Square'], 'email': json['Email'] == null ? undefined : json['Email'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'applicationUser': ApplicationUserFromJSON(json['ApplicationUser']), }; } export function PlaceToJSON(json: any): Place { return PlaceToJSONTyped(json, false); } export function PlaceToJSONTyped(value?: Place | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlaceId': value['placeId'], 'Name': value['name'], 'Address': value['address'], 'Enabled': value['enabled'], 'CompanyType': value['companyType'], 'Square': value['square'], 'Email': value['email'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'ApplicationUser': ApplicationUserToJSON(value['applicationUser']), }; }