From ec9c6aac8ad42a9cc67c81e5af68b64e25499e8d Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 17 May 2024 10:39:06 +0200 Subject: [PATCH] fix(neon_framework): Exclude computed fields from Account JSON Signed-off-by: provokateurin --- packages/neon_framework/lib/src/models/account.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/neon_framework/lib/src/models/account.dart b/packages/neon_framework/lib/src/models/account.dart index 42c51add8f5..5685d122138 100644 --- a/packages/neon_framework/lib/src/models/account.dart +++ b/packages/neon_framework/lib/src/models/account.dart @@ -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.