UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

57 lines (56 loc) 1.89 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 SoSPropertyEntityAttomAllEventDetailDataLot interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataLot(value) { if (!('depth' in value) || value['depth'] === undefined) return false; if (!('frontage' in value) || value['frontage'] === undefined) return false; if (!('lotsize1' in value) || value['lotsize1'] === undefined) return false; if (!('lotsize2' in value) || value['lotsize2'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataLotFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataLotFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataLotFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'depth': json['depth'], 'frontage': json['frontage'], 'lotsize1': json['lotsize1'], 'lotsize2': json['lotsize2'], }; } export function SoSPropertyEntityAttomAllEventDetailDataLotToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataLotToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataLotToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'depth': value['depth'], 'frontage': value['frontage'], 'lotsize1': value['lotsize1'], 'lotsize2': value['lotsize2'], }; }