UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

63 lines (62 loc) 2.74 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 V4CountiesUpdateCountyBodyDto interface. */ export function instanceOfV4CountiesUpdateCountyBodyDto(value) { 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 V4CountiesUpdateCountyBodyDtoFromJSON(json) { return V4CountiesUpdateCountyBodyDtoFromJSONTyped(json, false); } export function V4CountiesUpdateCountyBodyDtoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views '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 V4CountiesUpdateCountyBodyDtoToJSON(json) { return V4CountiesUpdateCountyBodyDtoToJSONTyped(json, false); } export function V4CountiesUpdateCountyBodyDtoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'attomNeighborhoodComunityData': value['attomNeighborhoodComunityData'], 'taxRate': value['taxRate'], 'titleInsurancePercentage': value['titleInsurancePercentage'], 'titleInsuranceBuyerApportionment': value['titleInsuranceBuyerApportionment'], 'transferTaxPercentage': value['transferTaxPercentage'], 'transferTaxBuyerApportionment': value['transferTaxBuyerApportionment'], 'organizationId': value['organizationId'], }; }