build method

HCP? build()

Implementation

HCP? build() {
    if(hcpId != null && hashedHcpId != null && firstName != null && specialization != null
        && organisation != null && zipCode != null && email != null) {
       var hcp = HCP._();
       hcp.hcpId = hcpId;
       hcp.hashedHcpId = hashedHcpId;
       hcp.firstName = firstName;
       hcp.lastName = lastName;
       hcp.specialization = specialization;
       hcp.organisation = organisation;
       hcp.zipCode = zipCode;
       hcp.city = city;
       hcp.gender = gender;
       hcp.email = email;
       hcp.mobile = mobile;
       hcp.dob = dob;
       hcp.wl = wl;
       hcp.state = state;
       hcp.country = country;
       hcp.hashedEmail = hashedEmail;

       return hcp;
    }
    Log("HCP").i("HCP creation Failed");
    return null;
 }