Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

fallback to empty profile if fetch fails

This commit is contained in:
Henry Hiles 2026-09-09 15:19:10 -04:00
commit 4314c88d5c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,7 @@ part "profile_response.g.dart";
@JsonSerializable()
class const ProfileResponse({
@JsonKey(fromJson: Profile.fromJson) required final Profile profile,
required final Bio? bio,
final Bio? bio,
}) with _$ProfileResponse {
Map<String, Object?> toJson() => _$ProfileResponseToJson(this);