/// 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 toJson() { final map = {}; 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; } }