/* 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'; /** * * @export * @interface PlaceIndexResponse */ export interface PlaceIndexResponse { /** * * @type {number} * @memberof PlaceIndexResponse */ placeId?: number; /** * * @type {string} * @memberof PlaceIndexResponse */ name?: string | null; /** * * @type {string} * @memberof PlaceIndexResponse */ address?: string | null; /** * * @type {string} * @memberof PlaceIndexResponse */ square?: string | null; /** * * @type {string} * @memberof PlaceIndexResponse */ email?: string | null; /** * * @type {boolean} * @memberof PlaceIndexResponse */ enabled?: boolean; /** * * @type {string} * @memberof PlaceIndexResponse */ companyType?: string | null; /** * * @type {Date} * @memberof PlaceIndexResponse */ createDate?: Date; /** * * @type {Date} * @memberof PlaceIndexResponse */ changeDate?: Date; /** * * @type {string} * @memberof PlaceIndexResponse */ userId?: string | null; /** * * @type {string} * @memberof PlaceIndexResponse */ userName?: string | null; } /** * Check if a given object implements the PlaceIndexResponse interface. */ export function instanceOfPlaceIndexResponse(value: object): value is PlaceIndexResponse { return true; } export function PlaceIndexResponseFromJSON(json: any): PlaceIndexResponse { return PlaceIndexResponseFromJSONTyped(json, false); } export function PlaceIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaceIndexResponse { if (json == null) { return json; } return { 'placeId': json['PlaceId'] == null ? undefined : json['PlaceId'], 'name': json['Name'] == null ? undefined : json['Name'], 'address': json['Address'] == null ? undefined : json['Address'], 'square': json['Square'] == null ? undefined : json['Square'], 'email': json['Email'] == null ? undefined : json['Email'], 'enabled': json['Enabled'] == null ? undefined : json['Enabled'], 'companyType': json['CompanyType'] == null ? undefined : json['CompanyType'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'userId': json['UserId'] == null ? undefined : json['UserId'], 'userName': json['UserName'] == null ? undefined : json['UserName'], }; } export function PlaceIndexResponseToJSON(json: any): PlaceIndexResponse { return PlaceIndexResponseToJSONTyped(json, false); } export function PlaceIndexResponseToJSONTyped(value?: PlaceIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlaceId': value['placeId'], 'Name': value['name'], 'Address': value['address'], 'Square': value['square'], 'Email': value['email'], 'Enabled': value['enabled'], 'CompanyType': value['companyType'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'UserId': value['userId'], 'UserName': value['userName'], }; }