forked from Nexus/nexus
fallback to empty profile if fetch fails
This commit is contained in:
parent
88cdcf9863
commit
4314c88d5c
3 changed files with 10 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue