toString method

  1. @override
String toString()
override

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 'FronteggUser{id: $id, email: $email, mfaEnrolled: $mfaEnrolled, name: $name, profilePictureUrl: $profilePictureUrl, phoneNumber: $phoneNumber, profileImage: $profileImage, roles: ${roles.map((e) => e.toString()).toList()}, permissions: ${permissions.map((e) => e.toString()).toList()}, tenantId: $tenantId, tenantIds: $tenantIds, tenants: ${tenants.map((e) => e.toString()).toList()}, activeTenant: $activeTenant, activatedForTenant: $activatedForTenant, metadata: $metadata, verified: $verified, superUser: $superUser}';
}