export class NewParent {

  private static GENDER = {
    MALE: 1,
    FEMALE: 2
  };

  FirstName: string;
  LastName: string;
  PhoneNumber: string;
  EmailAddress: string;
  GenderId: number = NewParent.GENDER.FEMALE;
  CongregationId: number;
  DuplicateEmail: string;
  HouseholdId: string;
  public static genderIdMale(): number {
    return NewParent.GENDER.MALE;
  }

  public static genderIdFemale(): number {
    return NewParent.GENDER.FEMALE;
  }

  static fromJson(json: any): NewParent {
    let c = new NewParent();
    if (json) {
      Object.assign(c, json);
    }
    return c;
  }

  constructor(firstName = '', lastName = '', phone = '', email = '') {
    this.FirstName = firstName;
    this.LastName = lastName;
    this.PhoneNumber = phone;
    this.EmailAddress = email;
  }

  public isMale(): boolean {
    return this.GenderId === NewParent.GENDER.MALE;
  }

  public isFemale(): boolean {
    return this.GenderId === NewParent.GENDER.FEMALE;
  }
}

export class NewParent {

  private static GENDER = {
    MALE: 1,
    FEMALE: 2
  };

  FirstName: string;
  LastName: string;
  PhoneNumber: string;
  EmailAddress: string;
  GenderId: number;
  CongregationId: number;
  DuplicateEmail: string;
  HouseholdId: string;
  public static genderIdMale(): number {
    return NewParent.GENDER.MALE;
  }

  public static genderIdFemale(): number {
    return NewParent.GENDER.FEMALE;
  }

  static fromJson(json: any): NewParent {
    let c = new NewParent();
    if (json) {
      Object.assign(c, json);
    }
    return c;
  }

  constructor(firstName = '', lastName = '', phone = '', email = '') {
    this.FirstName = firstName;
    this.LastName = lastName;
    this.PhoneNumber = phone;
    this.EmailAddress = email;
  }

  public isMale(): boolean {
    return this.GenderId === NewParent.GENDER.MALE;
  }

  public isFemale(): boolean {
    return this.GenderId === NewParent.GENDER.FEMALE;
  }
}

Remove the requirment of gender.
Remove the requirment of gender.
