additionalFields property

  1. @JsonKey.new(readValue: _readUserAdditionalFields, includeToJson: false)
Map<String, dynamic> get additionalFields
inherited

Server-defined custom fields (additionalFields) that aren't part of the static User shape. Populated from unmapped JSON keys by User.fromJson; never serialized back out. Read via the field extension, e.g. user.field<String>('firstName').

Implementation

String get id; String get name; String get email; bool get emailVerified; String? get image; DateTime? get createdAt; DateTime? get updatedAt; bool get twoFactorEnabled; String? get username; String? get displayUsername; bool get isAnonymous; String? get phoneNumber; bool get phoneNumberVerified; String? get role; bool get banned; String? get banReason; DateTime? get banExpires;/// Server-defined custom fields ([`additionalFields`](https://www.better-auth.com/docs/concepts/database#extending-core-schema))
/// that aren't part of the static [User] shape. Populated from unmapped JSON
/// keys by [User.fromJson]; never serialized back out. Read via the `field`
/// extension, e.g. `user.field<String>('firstName')`.
@JsonKey(readValue: _readUserAdditionalFields, includeToJson: false) Map<String, dynamic> get additionalFields;