UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

73 lines (72 loc) 2.71 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 SoSPropertyEntityAttomAllEventDetailDataSummary interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataSummary(value) { if (!('legal1' in value) || value['legal1'] === undefined) return false; if (!('proptype' in value) || value['proptype'] === undefined) return false; if (!('propclass' in value) || value['propclass'] === undefined) return false; if (!('absenteeInd' in value) || value['absenteeInd'] === undefined) return false; if (!('propLandUse' in value) || value['propLandUse'] === undefined) return false; if (!('propsubtype' in value) || value['propsubtype'] === undefined) return false; if (!('propertyType' in value) || value['propertyType'] === undefined) return false; if (!('propIndicator' in value) || value['propIndicator'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataSummaryFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataSummaryFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataSummaryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'legal1': json['legal1'], 'proptype': json['proptype'], 'propclass': json['propclass'], 'absenteeInd': json['absenteeInd'], 'propLandUse': json['propLandUse'], 'propsubtype': json['propsubtype'], 'propertyType': json['propertyType'], 'propIndicator': json['propIndicator'], }; } export function SoSPropertyEntityAttomAllEventDetailDataSummaryToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataSummaryToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataSummaryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'legal1': value['legal1'], 'proptype': value['proptype'], 'propclass': value['propclass'], 'absenteeInd': value['absenteeInd'], 'propLandUse': value['propLandUse'], 'propsubtype': value['propsubtype'], 'propertyType': value['propertyType'], 'propIndicator': value['propIndicator'], }; }