wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 979 B
JavaScript
/**
* Check if a given object implements the CustomerCommentCreate interface.
*/
export function instanceOfCustomerCommentCreate(value) {
if (!('customer' in value) || value['customer'] === undefined)
return false;
return true;
}
export function CustomerCommentCreateFromJSON(json) {
return CustomerCommentCreateFromJSONTyped(json, false);
}
export function CustomerCommentCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'customer': json['customer'],
};
}
export function CustomerCommentCreateToJSON(json) {
return CustomerCommentCreateToJSONTyped(json, false);
}
export function CustomerCommentCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'customer': value['customer'],
};
}