@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
54 lines (53 loc) • 1.85 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.
*/
import { V4AirtableTableDtoFromJSON, V4AirtableTableDtoToJSON, } from './V4AirtableTableDto';
/**
* Check if a given object implements the V4AirtableGetSchemaResponseDto interface.
*/
export function instanceOfV4AirtableGetSchemaResponseDto(value) {
if (!('tables' in value) || value['tables'] === undefined)
return false;
if (!('baseId' in value) || value['baseId'] === undefined)
return false;
return true;
}
export function V4AirtableGetSchemaResponseDtoFromJSON(json) {
return V4AirtableGetSchemaResponseDtoFromJSONTyped(json, false);
}
export function V4AirtableGetSchemaResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'tables': (json['tables'].map(V4AirtableTableDtoFromJSON)),
'baseId': json['baseId'],
'cached': json['cached'] == null ? undefined : json['cached'],
'retrievedAt': json['retrievedAt'] == null ? undefined : json['retrievedAt'],
};
}
export function V4AirtableGetSchemaResponseDtoToJSON(json) {
return V4AirtableGetSchemaResponseDtoToJSONTyped(json, false);
}
export function V4AirtableGetSchemaResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'tables': (value['tables'].map(V4AirtableTableDtoToJSON)),
'baseId': value['baseId'],
'cached': value['cached'],
'retrievedAt': value['retrievedAt'],
};
}