fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
61 lines • 2.26 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* fastcomments
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfGetTicketResponse = instanceOfGetTicketResponse;
exports.GetTicketResponseFromJSON = GetTicketResponseFromJSON;
exports.GetTicketResponseFromJSONTyped = GetTicketResponseFromJSONTyped;
exports.GetTicketResponseToJSON = GetTicketResponseToJSON;
exports.GetTicketResponseToJSONTyped = GetTicketResponseToJSONTyped;
const APITicketDetail_1 = require("./APITicketDetail");
const APIStatus_1 = require("./APIStatus");
/**
* Check if a given object implements the GetTicketResponse interface.
*/
function instanceOfGetTicketResponse(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
if (!('ticket' in value) || value['ticket'] === undefined)
return false;
if (!('availableStates' in value) || value['availableStates'] === undefined)
return false;
return true;
}
function GetTicketResponseFromJSON(json) {
return GetTicketResponseFromJSONTyped(json, false);
}
function GetTicketResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
'ticket': (0, APITicketDetail_1.APITicketDetailFromJSON)(json['ticket']),
'availableStates': json['availableStates'],
};
}
function GetTicketResponseToJSON(json) {
return GetTicketResponseToJSONTyped(json, false);
}
function GetTicketResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
'ticket': (0, APITicketDetail_1.APITicketDetailToJSON)(value['ticket']),
'availableStates': value['availableStates'],
};
}
//# sourceMappingURL=GetTicketResponse.js.map