toString method
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse
function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString
to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() {
return 'User(id: $id, first_name: $first_name, middle_name: $middle_name, last_name: $last_name, mobile: $mobile, email: $email, national_id_number: $national_id_number, passport_number: $passport_number, is_superuser: $is_superuser, role_id: $role_id, referred_by: $referred_by, referee_id: $referee_id, referral_code: $referral_code, mobile_verified_at: $mobile_verified_at, email_verified_at: $email_verified_at, created_at: $created_at, updated_at: $updated_at, corporate_name: $corporate_name, corporate_reg_no: $corporate_reg_no, user_type_id: $user_type_id, country_id: $country_id, agent_type_ref: $agent_type_ref, parent_ref: $parent_ref, full_name: $full_name, referrals_count: $referrals_count)';
}