class PersonInfo {
  final String name;
  final String city;
  final String email;
  final int age;
  final String star;
  final String distance;
  final String professional;
  final bool isOnline;
  final userId;

  PersonInfo({this.name, this.email,
  this.city,
  this.age,
  this.isOnline,
  this.professional,
  this.distance,
  this.star,
  this.userId});

  PersonInfo.fromJson(Map<String, dynamic> json)
      : name = json['name'],
        email = json['email'],
        city = json['city'],
        age = json['age'],
        star = json['star'],
        professional = json['professional'],
        distance = json['distance'],
        isOnline = json['isOnline'],
        userId = json['userId'];

}
