request_friend_info.dart 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'request_friend_info.g.dart';
  3. @JsonSerializable()
  4. class RequestFriendInfo {
  5. @JsonKey(name: 'id')
  6. int id;
  7. @JsonKey(name: 'userId')
  8. String userId;
  9. @JsonKey(name: 'userPhone')
  10. String userPhone;
  11. @JsonKey(name: 'friendId')
  12. String friendId;
  13. @JsonKey(name: 'friendPhone')
  14. String friendPhone;
  15. @JsonKey(name: 'createTime')
  16. int createTime;
  17. @JsonKey(name: 'status')
  18. int status;
  19. RequestFriendInfo(
  20. {required this.id,
  21. required this.userId,
  22. required this.userPhone,
  23. required this.friendId,
  24. required this.friendPhone,
  25. required this.createTime,
  26. required this.status});
  27. factory RequestFriendInfo.fromJson(Map<String, dynamic> json) =>
  28. _$RequestFriendInfoFromJson(json);
  29. Map<String, dynamic> toJson() => _$RequestFriendInfoToJson(this);
  30. }