mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: follow btn text
This commit is contained in:
@@ -21,6 +21,8 @@ part 'data.g.dart';
|
||||
@JsonSerializable()
|
||||
class Data {
|
||||
int? relation;
|
||||
@JsonKey(name: 'rel_special')
|
||||
int? relSpecial;
|
||||
@JsonKey(name: 'guest_relation')
|
||||
int? guestRelation;
|
||||
@JsonKey(name: 'default_tab')
|
||||
@@ -54,6 +56,7 @@ class Data {
|
||||
|
||||
Data({
|
||||
this.relation,
|
||||
this.relSpecial,
|
||||
this.guestRelation,
|
||||
this.defaultTab,
|
||||
this.isParams,
|
||||
|
||||
@@ -8,6 +8,7 @@ part of 'data.dart';
|
||||
|
||||
Data _$DataFromJson(Map<String, dynamic> json) => Data(
|
||||
relation: (json['relation'] as num?)?.toInt(),
|
||||
relSpecial: (json['rel_special'] as num?)?.toInt(),
|
||||
guestRelation: (json['guest_relation'] as num?)?.toInt(),
|
||||
defaultTab: json['default_tab'] as String?,
|
||||
isParams: json['is_params'] as bool?,
|
||||
@@ -64,6 +65,7 @@ Data _$DataFromJson(Map<String, dynamic> json) => Data(
|
||||
|
||||
Map<String, dynamic> _$DataToJson(Data instance) => <String, dynamic>{
|
||||
'relation': instance.relation,
|
||||
'rel_special': instance.relSpecial,
|
||||
'guest_relation': instance.guestRelation,
|
||||
'default_tab': instance.defaultTab,
|
||||
'is_params': instance.isParams,
|
||||
|
||||
Reference in New Issue
Block a user