Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. merge(other: Partial<CompanyModelCustom>): CompanyModelCustom {
  2.         if (!other) {
  3.             return this;
  4.         }
  5.  
  6.         return new CompanyModelCustom({
  7.             ...this,
  8.             name: other.name,
  9.             subdomain: other.subdomain,
  10.             website: other.website,
  11.             owner: other.owner,
  12.             avatar: other.avatar,
  13.             admins_count: +other.admins_count,
  14.             reply_to_email_address: other.reply_to_email_address,
  15.             cc_owner_in_emails: !!other.cc_owner_in_emails,
  16.             field_completed_notification_enabled: !!other.field_completed_notification_enabled,
  17.             field_completed_notification_limited: !!other.field_completed_notification_limited,
  18.             request_default_instruction:
  19.                 other.request_default_instruction ||
  20.                 this.request_default_instruction
  21.         });
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement