You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
/// fans : 0 |
|
/// follow : 0 |
|
|
|
class SocialInfo { |
|
SocialInfo({ |
|
dynamic fans, |
|
dynamic follow, |
|
dynamic achievementNumber, |
|
dynamic mutualFollowCount}){ |
|
_fans = fans; |
|
_follow = follow; |
|
_achievementNumber = achievementNumber; |
|
_mutualFollowCount = mutualFollowCount; |
|
} |
|
|
|
SocialInfo.fromJson(dynamic json) { |
|
_fans = json['fans']; |
|
_follow = json['follow']; |
|
_achievementNumber = json['achievementNumber']; |
|
_mutualFollowCount = json['mutualFollowCount']; |
|
} |
|
dynamic _fans; |
|
dynamic _follow; |
|
dynamic _achievementNumber; |
|
dynamic _mutualFollowCount; |
|
|
|
dynamic get fans => _fans; |
|
dynamic get follow => _follow; |
|
dynamic get achievementNumber => _achievementNumber; |
|
dynamic get mutualFollowCount => _mutualFollowCount; |
|
|
|
|
|
set fans(int value) { |
|
_fans = value; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['fans'] = _fans; |
|
map['follow'] = _follow; |
|
map['achievementNumber'] = _achievementNumber; |
|
map['mutualFollowCount'] = _mutualFollowCount; |
|
return map; |
|
} |
|
|
|
set follow(int value) { |
|
_follow = value; |
|
} |
|
|
|
set achievementNumber(int value) { |
|
_achievementNumber = value; |
|
} |
|
|
|
set mutualFollowCount(int value) { |
|
_mutualFollowCount = value; |
|
} |
|
} |