setAttribute method

void setAttribute(
  1. String k,
  2. dynamic v
)

Implementation

void setAttribute(String k, v) {
  switch (k) {
    case 'full_name':
      {
        this.setName(v.toString());
        break;
      }
    case 'email':
      {
        this.setEmail(v.toString());
        break;
      }
    case 'date_of_birth':
      {
        print("Settting attribute dob");
        this.setDateOfBirth(v);
        break;
      }
    case 'location':
      {
        this.setLocation(v.toString());
        break;
      }
    case 'monthly_donation_limit':
      {
        this.setMonthlyDonationLimit(v);
        break;
      }
    case 'home_owner':
      {
        bool value = v;
        this.setHomeOwner(value);
        break;
      }
  }
}