fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
57 lines • 2.23 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.instanceOfBannedUserMatch = instanceOfBannedUserMatch;
exports.BannedUserMatchFromJSON = BannedUserMatchFromJSON;
exports.BannedUserMatchFromJSONTyped = BannedUserMatchFromJSONTyped;
exports.BannedUserMatchToJSON = BannedUserMatchToJSON;
exports.BannedUserMatchToJSONTyped = BannedUserMatchToJSONTyped;
const BannedUserMatchMatchedOnValue_1 = require("./BannedUserMatchMatchedOnValue");
const BannedUserMatchType_1 = require("./BannedUserMatchType");
/**
* Check if a given object implements the BannedUserMatch interface.
*/
function instanceOfBannedUserMatch(value) {
if (!('matchedOn' in value) || value['matchedOn'] === undefined)
return false;
if (!('matchedOnValue' in value) || value['matchedOnValue'] === undefined)
return false;
return true;
}
function BannedUserMatchFromJSON(json) {
return BannedUserMatchFromJSONTyped(json, false);
}
function BannedUserMatchFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'matchedOn': (0, BannedUserMatchType_1.BannedUserMatchTypeFromJSON)(json['matchedOn']),
'matchedOnValue': (0, BannedUserMatchMatchedOnValue_1.BannedUserMatchMatchedOnValueFromJSON)(json['matchedOnValue']),
};
}
function BannedUserMatchToJSON(json) {
return BannedUserMatchToJSONTyped(json, false);
}
function BannedUserMatchToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'matchedOn': (0, BannedUserMatchType_1.BannedUserMatchTypeToJSON)(value['matchedOn']),
'matchedOnValue': (0, BannedUserMatchMatchedOnValue_1.BannedUserMatchMatchedOnValueToJSON)(value['matchedOnValue']),
};
}
//# sourceMappingURL=BannedUserMatch.js.map