Skip to content

Commit

Permalink
Merge pull request #2050 from nextcloud/fix/neon_framework/account-js…
Browse files Browse the repository at this point in the history
…on-exclude-computed-fields
  • Loading branch information
provokateurin authored May 17, 2024
2 parents c085577 + ec9c6aa commit dab6e29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/neon_framework/lib/src/models/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ class Account implements Credentials, Findable {
int get hashCode => serverURL.hashCode + username.hashCode;

/// An authenticated API client.
@JsonKey(includeFromJson: false, includeToJson: false)
late final NextcloudClient client;

/// The unique ID of the account.
///
/// Implemented in a primitive way hashing the [username] and [serverURL].
@override
@JsonKey(includeFromJson: false, includeToJson: false)
final String id;

/// A human readable representation of [username] and [serverURL].
@JsonKey(includeFromJson: false, includeToJson: false)
final String humanReadableID;

/// Builds a human readable id for a user and server pair.
Expand Down

0 comments on commit dab6e29

Please sign in to comment.