Skip to content

Commit

Permalink
fix(neon_framework): Exclude computed fields from Account JSON
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed May 17, 2024
1 parent c085577 commit ec9c6aa
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 ec9c6aa

Please sign in to comment.