UNPKG

wallee

Version:
39 lines (38 loc) 1.76 kB
import { TransactionInvoiceFromJSON, TransactionInvoiceToJSON, } from './TransactionInvoice'; /** * Check if a given object implements the TransactionInvoiceComment interface. */ export function instanceOfTransactionInvoiceComment(value) { return true; } export function TransactionInvoiceCommentFromJSON(json) { return TransactionInvoiceCommentFromJSONTyped(json, false); } export function TransactionInvoiceCommentFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'pinned': json['pinned'] == null ? undefined : json['pinned'], 'editedBy': json['editedBy'] == null ? undefined : json['editedBy'], 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'], 'id': json['id'] == null ? undefined : json['id'], 'editedOn': json['editedOn'] == null ? undefined : (new Date(json['editedOn'])), 'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])), 'transactionInvoice': json['transactionInvoice'] == null ? undefined : TransactionInvoiceFromJSON(json['transactionInvoice']), 'version': json['version'] == null ? undefined : json['version'], 'content': json['content'] == null ? undefined : json['content'], }; } export function TransactionInvoiceCommentToJSON(json) { return TransactionInvoiceCommentToJSONTyped(json, false); } export function TransactionInvoiceCommentToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'transactionInvoice': TransactionInvoiceToJSON(value['transactionInvoice']), }; }