wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.04 kB
JavaScript
import { CustomerCommentFromJSON, } from './CustomerComment';
/**
* Check if a given object implements the CustomerCommentListResponse interface.
*/
export function instanceOfCustomerCommentListResponse(value) {
return true;
}
export function CustomerCommentListResponseFromJSON(json) {
return CustomerCommentListResponseFromJSONTyped(json, false);
}
export function CustomerCommentListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CustomerCommentFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function CustomerCommentListResponseToJSON(json) {
return CustomerCommentListResponseToJSONTyped(json, false);
}
export function CustomerCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}