@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
53 lines (52 loc) • 1.66 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 V4AirtableListRecordsRecordDto interface.
*/
export function instanceOfV4AirtableListRecordsRecordDto(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('fields' in value) || value['fields'] === undefined)
return false;
return true;
}
export function V4AirtableListRecordsRecordDtoFromJSON(json) {
return V4AirtableListRecordsRecordDtoFromJSONTyped(json, false);
}
export function V4AirtableListRecordsRecordDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'id': json['id'],
'fields': json['fields'],
'createdTime': json['createdTime'] == null ? undefined : json['createdTime'],
'sosPid': json['sosPid'] == null ? undefined : json['sosPid'],
};
}
export function V4AirtableListRecordsRecordDtoToJSON(json) {
return V4AirtableListRecordsRecordDtoToJSONTyped(json, false);
}
export function V4AirtableListRecordsRecordDtoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'fields': value['fields'],
'createdTime': value['createdTime'],
'sosPid': value['sosPid'],
};
}