wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRestApiErrorResponse = instanceOfRestApiErrorResponse;
exports.RestApiErrorResponseFromJSON = RestApiErrorResponseFromJSON;
exports.RestApiErrorResponseFromJSONTyped = RestApiErrorResponseFromJSONTyped;
exports.RestApiErrorResponseToJSON = RestApiErrorResponseToJSON;
exports.RestApiErrorResponseToJSONTyped = RestApiErrorResponseToJSONTyped;
/**
* Check if a given object implements the RestApiErrorResponse interface.
*/
function instanceOfRestApiErrorResponse(value) {
return true;
}
function RestApiErrorResponseFromJSON(json) {
return RestApiErrorResponseFromJSONTyped(json, false);
}
function RestApiErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'date': json['date'] == null ? undefined : (new Date(json['date'])),
'code': json['code'] == null ? undefined : json['code'],
'id': json['id'] == null ? undefined : json['id'],
'message': json['message'] == null ? undefined : json['message'],
'errors': json['errors'] == null ? undefined : json['errors'],
};
}
function RestApiErrorResponseToJSON(json) {
return RestApiErrorResponseToJSONTyped(json, false);
}
function RestApiErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}