UNPKG

wallee

Version:
30 lines (29 loc) 1.02 kB
import { RefundCommentFromJSON, } from './RefundComment'; /** * Check if a given object implements the RefundCommentListResponse interface. */ export function instanceOfRefundCommentListResponse(value) { return true; } export function RefundCommentListResponseFromJSON(json) { return RefundCommentListResponseFromJSONTyped(json, false); } export function RefundCommentListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RefundCommentFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function RefundCommentListResponseToJSON(json) { return RefundCommentListResponseToJSONTyped(json, false); } export function RefundCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }