mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: remove fan
Closes #733 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -4,15 +4,21 @@ part 'relation.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Relation {
|
||||
int? status;
|
||||
@JsonKey(name: 'is_follow')
|
||||
int? isFollow;
|
||||
int? status;
|
||||
@JsonKey(name: 'is_follow')
|
||||
int? isFollow;
|
||||
@JsonKey(name: 'is_followed')
|
||||
int? isFollowed;
|
||||
|
||||
Relation({this.status, this.isFollow});
|
||||
Relation({
|
||||
this.status,
|
||||
this.isFollow,
|
||||
this.isFollowed,
|
||||
});
|
||||
|
||||
factory Relation.fromJson(Map<String, dynamic> json) {
|
||||
return _$RelationFromJson(json);
|
||||
}
|
||||
factory Relation.fromJson(Map<String, dynamic> json) {
|
||||
return _$RelationFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$RelationToJson(this);
|
||||
Map<String, dynamic> toJson() => _$RelationToJson(this);
|
||||
}
|
||||
|
||||
@@ -9,9 +9,11 @@ part of 'relation.dart';
|
||||
Relation _$RelationFromJson(Map<String, dynamic> json) => Relation(
|
||||
status: (json['status'] as num?)?.toInt(),
|
||||
isFollow: (json['is_follow'] as num?)?.toInt(),
|
||||
isFollowed: (json['is_followed'] as num?)?.toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$RelationToJson(Relation instance) => <String, dynamic>{
|
||||
'status': instance.status,
|
||||
'is_follow': instance.isFollow,
|
||||
'is_followed': instance.isFollowed,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user