UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

57 lines (56 loc) 2.55 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 V4HousingAuthoritiesUpdateHousingAuthorityBody interface. */ export function instanceOfV4HousingAuthoritiesUpdateHousingAuthorityBody(value) { return true; } export function V4HousingAuthoritiesUpdateHousingAuthorityBodyFromJSON(json) { return V4HousingAuthoritiesUpdateHousingAuthorityBodyFromJSONTyped(json, false); } export function V4HousingAuthoritiesUpdateHousingAuthorityBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'name': json['name'] == null ? undefined : json['name'], 'code': json['code'] == null ? undefined : json['code'], 'priority': json['priority'] == null ? undefined : json['priority'], 'paymentStandardType': json['paymentStandardType'] == null ? undefined : json['paymentStandardType'], 'paymentStandardPeriod': json['paymentStandardPeriod'] == null ? undefined : json['paymentStandardPeriod'], 'defaultOneUnitPropertyType': json['defaultOneUnitPropertyType'] == null ? undefined : json['defaultOneUnitPropertyType'], 'defaultMultiUnitPropertyType': json['defaultMultiUnitPropertyType'] == null ? undefined : json['defaultMultiUnitPropertyType'], 'utilitiesAllowancePeriod': json['utilitiesAllowancePeriod'] == null ? undefined : json['utilitiesAllowancePeriod'], }; } export function V4HousingAuthoritiesUpdateHousingAuthorityBodyToJSON(json) { return V4HousingAuthoritiesUpdateHousingAuthorityBodyToJSONTyped(json, false); } export function V4HousingAuthoritiesUpdateHousingAuthorityBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'code': value['code'], 'priority': value['priority'], 'paymentStandardType': value['paymentStandardType'], 'paymentStandardPeriod': value['paymentStandardPeriod'], 'defaultOneUnitPropertyType': value['defaultOneUnitPropertyType'], 'defaultMultiUnitPropertyType': value['defaultMultiUnitPropertyType'], 'utilitiesAllowancePeriod': value['utilitiesAllowancePeriod'], }; }