Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- merge(other: Partial<CompanyModelCustom>): CompanyModelCustom {
- if (!other) {
- return this;
- }
- return new CompanyModelCustom({
- ...this,
- name: other.name,
- subdomain: other.subdomain,
- website: other.website,
- owner: other.owner,
- avatar: other.avatar,
- admins_count: +other.admins_count,
- reply_to_email_address: other.reply_to_email_address,
- cc_owner_in_emails: !!other.cc_owner_in_emails,
- field_completed_notification_enabled: !!other.field_completed_notification_enabled,
- field_completed_notification_limited: !!other.field_completed_notification_limited,
- request_default_instruction:
- other.request_default_instruction ||
- this.request_default_instruction
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement