UNPKG

wallee

Version:
33 lines (32 loc) 951 B
/** * Check if a given object implements the RefundCommentCreate interface. */ export function instanceOfRefundCommentCreate(value) { if (!('refund' in value) || value['refund'] === undefined) return false; return true; } export function RefundCommentCreateFromJSON(json) { return RefundCommentCreateFromJSONTyped(json, false); } export function RefundCommentCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'refund': json['refund'], }; } export function RefundCommentCreateToJSON(json) { return RefundCommentCreateToJSONTyped(json, false); } export function RefundCommentCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'refund': value['refund'], }; }