UNPKG

wallee

Version:
39 lines (38 loc) 1.54 kB
import { RefundFromJSON, RefundToJSON, } from './Refund'; /** * Check if a given object implements the RefundComment interface. */ export function instanceOfRefundComment(value) { return true; } export function RefundCommentFromJSON(json) { return RefundCommentFromJSONTyped(json, false); } export function RefundCommentFromJSONTyped(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'])), 'version': json['version'] == null ? undefined : json['version'], 'content': json['content'] == null ? undefined : json['content'], 'refund': json['refund'] == null ? undefined : RefundFromJSON(json['refund']), }; } export function RefundCommentToJSON(json) { return RefundCommentToJSONTyped(json, false); } export function RefundCommentToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'refund': RefundToJSON(value['refund']), }; }