wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.13 kB
JavaScript
import { CustomerCommentFromJSON, } from './CustomerComment';
/**
* Check if a given object implements the CustomerCommentSearchResponse interface.
*/
export function instanceOfCustomerCommentSearchResponse(value) {
return true;
}
export function CustomerCommentSearchResponseFromJSON(json) {
return CustomerCommentSearchResponseFromJSONTyped(json, false);
}
export function CustomerCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CustomerCommentFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function CustomerCommentSearchResponseToJSON(json) {
return CustomerCommentSearchResponseToJSONTyped(json, false);
}
export function CustomerCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}