@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
77 lines (76 loc) • 2.73 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 SoSPropertyEntityAttomAllEventDetailDataStatus interface.
*/
export function instanceOfSoSPropertyEntityAttomAllEventDetailDataStatus(value) {
if (!('msg' in value) || value['msg'] === undefined)
return false;
if (!('code' in value) || value['code'] === undefined)
return false;
if (!('page' in value) || value['page'] === undefined)
return false;
if (!('total' in value) || value['total'] === undefined)
return false;
if (!('attomId' in value) || value['attomId'] === undefined)
return false;
if (!('version' in value) || value['version'] === undefined)
return false;
if (!('pagesize' in value) || value['pagesize'] === undefined)
return false;
if (!('transactionID' in value) || value['transactionID'] === undefined)
return false;
if (!('responseDateTime' in value) || value['responseDateTime'] === undefined)
return false;
return true;
}
export function SoSPropertyEntityAttomAllEventDetailDataStatusFromJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataStatusFromJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataStatusFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'msg': json['msg'],
'code': json['code'],
'page': json['page'],
'total': json['total'],
'attomId': json['attomId'],
'version': json['version'],
'pagesize': json['pagesize'],
'transactionID': json['transactionID'],
'responseDateTime': json['responseDateTime'],
};
}
export function SoSPropertyEntityAttomAllEventDetailDataStatusToJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataStatusToJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataStatusToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'msg': value['msg'],
'code': value['code'],
'page': value['page'],
'total': value['total'],
'attomId': value['attomId'],
'version': value['version'],
'pagesize': value['pagesize'],
'transactionID': value['transactionID'],
'responseDateTime': value['responseDateTime'],
};
}