123456789101112131415161718192021222324 |
- import 'package:sport/bean/user_friend.dart';
- class FriendRelation {
- UserFriend? followDetail;
- String? relation;
- FriendRelation({this.followDetail, this.relation});
- FriendRelation.fromJson(Map<String, dynamic> json) {
- if (json['followDetail'] != null) {
- followDetail = UserFriend.fromJson(json['followDetail']);
- }
- relation = json['relation'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- if (this.followDetail != null) {
- data['followDetail'] = this.followDetail!.toJson();
- }
- data['relation'] = this.relation;
- return data;
- }
- }
|