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.
73 lines
1.2 KiB
73 lines
1.2 KiB
/// id : "1438426197401796608" |
|
/// phone : "18672306891" |
|
/// nickname : "冬天的秘密" |
|
/// headimg : "" |
|
|
|
class SecondCardList { |
|
SecondCardList({ |
|
String id, |
|
String phone, |
|
String nickname, |
|
String headimg, |
|
bool isAdd, |
|
}) { |
|
_id = id; |
|
_phone = phone; |
|
_nickname = nickname; |
|
_headimg = headimg; |
|
_isAdd = isAdd; |
|
} |
|
|
|
SecondCardList.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_phone = json['phone']; |
|
_nickname = json['nickname']; |
|
_headimg = json['headimg']; |
|
} |
|
|
|
String _id; |
|
String _phone; |
|
String _nickname; |
|
String _headimg; |
|
bool _isAdd; |
|
|
|
String get id => _id; |
|
|
|
String get phone => _phone; |
|
|
|
String get nickname => _nickname; |
|
|
|
String get headimg => _headimg; |
|
|
|
bool get isAdd => _isAdd; |
|
|
|
set id(String value) { |
|
_id = value; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['phone'] = _phone; |
|
map['nickname'] = _nickname; |
|
map['headimg'] = _headimg; |
|
return map; |
|
} |
|
|
|
set phone(String value) { |
|
_phone = value; |
|
} |
|
|
|
set nickname(String value) { |
|
_nickname = value; |
|
} |
|
|
|
set headimg(String value) { |
|
_headimg = value; |
|
} |
|
|
|
set isAdd(bool value) { |
|
_isAdd = value; |
|
} |
|
|
|
}
|
|
|