wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.03 kB
JavaScript
/**
* Check if a given object implements the RestApiErrorResponse interface.
*/
export function instanceOfRestApiErrorResponse(value) {
return true;
}
export function RestApiErrorResponseFromJSON(json) {
return RestApiErrorResponseFromJSONTyped(json, false);
}
export 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'],
};
}
export function RestApiErrorResponseToJSON(json) {
return RestApiErrorResponseToJSONTyped(json, false);
}
export function RestApiErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}