UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

67 lines (66 loc) 2.8 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 SoSCountyEntityBase interface. */ export function instanceOfSoSCountyEntityBase(value) { if (!('cid' in value) || value['cid'] === undefined) return false; if (!('titleInsurancePercentage' in value) || value['titleInsurancePercentage'] === undefined) return false; if (!('transferTaxPercentage' in value) || value['transferTaxPercentage'] === undefined) return false; if (!('transferTaxBuyerApportionment' in value) || value['transferTaxBuyerApportionment'] === undefined) return false; return true; } export function SoSCountyEntityBaseFromJSON(json) { return SoSCountyEntityBaseFromJSONTyped(json, false); } export function SoSCountyEntityBaseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'cid': json['cid'], 'name': json['name'] == null ? undefined : json['name'], 'attomNeighborhoodComunityData': json['attomNeighborhoodComunityData'] == null ? undefined : json['attomNeighborhoodComunityData'], 'taxRate': json['taxRate'] == null ? undefined : json['taxRate'], 'titleInsurancePercentage': json['titleInsurancePercentage'], 'titleInsuranceBuyerApportionment': json['titleInsuranceBuyerApportionment'] == null ? undefined : json['titleInsuranceBuyerApportionment'], 'transferTaxPercentage': json['transferTaxPercentage'], 'transferTaxBuyerApportionment': json['transferTaxBuyerApportionment'], 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'], }; } export function SoSCountyEntityBaseToJSON(json) { return SoSCountyEntityBaseToJSONTyped(json, false); } export function SoSCountyEntityBaseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'cid': value['cid'], 'name': value['name'], 'attomNeighborhoodComunityData': value['attomNeighborhoodComunityData'], 'taxRate': value['taxRate'], 'titleInsurancePercentage': value['titleInsurancePercentage'], 'titleInsuranceBuyerApportionment': value['titleInsuranceBuyerApportionment'], 'transferTaxPercentage': value['transferTaxPercentage'], 'transferTaxBuyerApportionment': value['transferTaxBuyerApportionment'], 'organizationId': value['organizationId'], }; }