UNPKG

wallee

Version:
33 lines (32 loc) 973 B
/** * Check if a given object implements the CustomerCommentActive interface. */ export function instanceOfCustomerCommentActive(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } export function CustomerCommentActiveFromJSON(json) { return CustomerCommentActiveFromJSONTyped(json, false); } export function CustomerCommentActiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'version': json['version'], }; } export function CustomerCommentActiveToJSON(json) { return CustomerCommentActiveToJSONTyped(json, false); } export function CustomerCommentActiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'version': value['version'], }; }