UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

57 lines (56 loc) 2.01 kB
/* tslint:disable */ /* eslint-disable */ /** * API v4 * Swagger documentation for API v4 * * The version of the OpenAPI document: 4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Check if a given object implements the SoSPropertyManagerEntityBase interface. */ export function instanceOfSoSPropertyManagerEntityBase(value) { if (!('pmid' in value) || value['pmid'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function SoSPropertyManagerEntityBaseFromJSON(json) { return SoSPropertyManagerEntityBaseFromJSONTyped(json, false); } export function SoSPropertyManagerEntityBaseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'pmid': json['pmid'], 'name': json['name'], 'onboardingPerUnit': json['onboardingPerUnit'] == null ? undefined : json['onboardingPerUnit'], 'reservePerUnit': json['reservePerUnit'] == null ? undefined : json['reservePerUnit'], 'feesPercentage': json['feesPercentage'] == null ? undefined : json['feesPercentage'], 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'], }; } export function SoSPropertyManagerEntityBaseToJSON(json) { return SoSPropertyManagerEntityBaseToJSONTyped(json, false); } export function SoSPropertyManagerEntityBaseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'pmid': value['pmid'], 'name': value['name'], 'onboardingPerUnit': value['onboardingPerUnit'], 'reservePerUnit': value['reservePerUnit'], 'feesPercentage': value['feesPercentage'], 'organizationId': value['organizationId'], }; }