UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

57 lines (56 loc) 1.87 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 SoSPropertyEntityAttomAllEventDetailDataIdentifier interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataIdentifier(value) { if (!('Id' in value) || value['Id'] === undefined) return false; if (!('apn' in value) || value['apn'] === undefined) return false; if (!('fips' in value) || value['fips'] === undefined) return false; if (!('attomId' in value) || value['attomId'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataIdentifierFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataIdentifierFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataIdentifierFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'Id': json['Id'], 'apn': json['apn'], 'fips': json['fips'], 'attomId': json['attomId'], }; } export function SoSPropertyEntityAttomAllEventDetailDataIdentifierToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataIdentifierToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataIdentifierToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'Id': value['Id'], 'apn': value['apn'], 'fips': value['fips'], 'attomId': value['attomId'], }; }