UNPKG

wallee

Version:
40 lines (39 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTransactionCommentActive = instanceOfTransactionCommentActive; exports.TransactionCommentActiveFromJSON = TransactionCommentActiveFromJSON; exports.TransactionCommentActiveFromJSONTyped = TransactionCommentActiveFromJSONTyped; exports.TransactionCommentActiveToJSON = TransactionCommentActiveToJSON; exports.TransactionCommentActiveToJSONTyped = TransactionCommentActiveToJSONTyped; /** * Check if a given object implements the TransactionCommentActive interface. */ function instanceOfTransactionCommentActive(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function TransactionCommentActiveFromJSON(json) { return TransactionCommentActiveFromJSONTyped(json, false); } function TransactionCommentActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'version': json['version'], }; } function TransactionCommentActiveToJSON(json) { return TransactionCommentActiveToJSONTyped(json, false); } function TransactionCommentActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'version': value['version'], }; }