UNPKG

wallee

Version:
40 lines (39 loc) 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCustomerCommentCreate = instanceOfCustomerCommentCreate; exports.CustomerCommentCreateFromJSON = CustomerCommentCreateFromJSON; exports.CustomerCommentCreateFromJSONTyped = CustomerCommentCreateFromJSONTyped; exports.CustomerCommentCreateToJSON = CustomerCommentCreateToJSON; exports.CustomerCommentCreateToJSONTyped = CustomerCommentCreateToJSONTyped; /** * Check if a given object implements the CustomerCommentCreate interface. */ function instanceOfCustomerCommentCreate(value) { if (!('customer' in value) || value['customer'] === undefined) return false; return true; } function CustomerCommentCreateFromJSON(json) { return CustomerCommentCreateFromJSONTyped(json, false); } function CustomerCommentCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'customer': json['customer'], }; } function CustomerCommentCreateToJSON(json) { return CustomerCommentCreateToJSONTyped(json, false); } function CustomerCommentCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'customer': value['customer'], }; }