UNPKG

wallee

Version:
40 lines (39 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfRefundCommentActive = instanceOfRefundCommentActive; exports.RefundCommentActiveFromJSON = RefundCommentActiveFromJSON; exports.RefundCommentActiveFromJSONTyped = RefundCommentActiveFromJSONTyped; exports.RefundCommentActiveToJSON = RefundCommentActiveToJSON; exports.RefundCommentActiveToJSONTyped = RefundCommentActiveToJSONTyped; /** * Check if a given object implements the RefundCommentActive interface. */ function instanceOfRefundCommentActive(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function RefundCommentActiveFromJSON(json) { return RefundCommentActiveFromJSONTyped(json, false); } function RefundCommentActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'version': json['version'], }; } function RefundCommentActiveToJSON(json) { return RefundCommentActiveToJSONTyped(json, false); } function RefundCommentActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'version': value['version'], }; }