wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.14 kB
JavaScript
import { DocumentTemplateFromJSON, } from './DocumentTemplate';
/**
* Check if a given object implements the DocumentTemplateSearchResponse interface.
*/
export function instanceOfDocumentTemplateSearchResponse(value) {
return true;
}
export function DocumentTemplateSearchResponseFromJSON(json) {
return DocumentTemplateSearchResponseFromJSONTyped(json, false);
}
export function DocumentTemplateSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplateFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function DocumentTemplateSearchResponseToJSON(json) {
return DocumentTemplateSearchResponseToJSONTyped(json, false);
}
export function DocumentTemplateSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}