UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

57 lines (56 loc) 2.02 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 SoSWalkthroughEntityBase interface. */ export function instanceOfSoSWalkthroughEntityBase(value) { if (!('wid' in value) || value['wid'] === undefined) return false; return true; } export function SoSWalkthroughEntityBaseFromJSON(json) { return SoSWalkthroughEntityBaseFromJSONTyped(json, false); } export function SoSWalkthroughEntityBaseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'wid': json['wid'], 'pid': json['pid'] == null ? undefined : json['pid'], 'status': json['status'] == null ? undefined : json['status'], 'walkthroughDate': json['walkthroughDate'] == null ? undefined : json['walkthroughDate'], 'renoPersonId': json['renoPersonId'] == null ? undefined : json['renoPersonId'], 'assignedPocId': json['assignedPocId'] == null ? undefined : json['assignedPocId'], 'notes': json['notes'] == null ? undefined : json['notes'], }; } export function SoSWalkthroughEntityBaseToJSON(json) { return SoSWalkthroughEntityBaseToJSONTyped(json, false); } export function SoSWalkthroughEntityBaseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'wid': value['wid'], 'pid': value['pid'], 'status': value['status'], 'walkthroughDate': value['walkthroughDate'] == null ? value['walkthroughDate'] : value['walkthroughDate'], 'renoPersonId': value['renoPersonId'], 'assignedPocId': value['assignedPocId'], 'notes': value['notes'], }; }