@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
51 lines (50 loc) • 1.74 kB
JavaScript
/* 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 V4ContactsUpdateContactBody interface.
*/
export function instanceOfV4ContactsUpdateContactBody(value) {
return true;
}
export function V4ContactsUpdateContactBodyFromJSON(json) {
return V4ContactsUpdateContactBodyFromJSONTyped(json, false);
}
export function V4ContactsUpdateContactBodyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'email': json['email'] == null ? undefined : json['email'],
'phonePrimary': json['phonePrimary'] == null ? undefined : json['phonePrimary'],
'phoneSecondary': json['phoneSecondary'] == null ? undefined : json['phoneSecondary'],
'name': json['name'] == null ? undefined : json['name'],
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
};
}
export function V4ContactsUpdateContactBodyToJSON(json) {
return V4ContactsUpdateContactBodyToJSONTyped(json, false);
}
export function V4ContactsUpdateContactBodyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'email': value['email'],
'phonePrimary': value['phonePrimary'],
'phoneSecondary': value['phoneSecondary'],
'name': value['name'],
'organizationId': value['organizationId'],
};
}