class CommentModel {
  List<CommentDetailModel> records;
  int total;
  int size;
  int current;
  bool searchCount;
  int pages;

  CommentModel(
      {this.records,
      this.total,
      this.size,
      this.current,
      this.searchCount,
      this.pages});

  CommentModel.fromJson(Map<String, dynamic> json) {
    if (json['records'] != null) {
      records = new List<CommentDetailModel>();
      json['records'].forEach((v) {
        records.add(new CommentDetailModel.fromJson(v));
      });
    }
    total = json['total'];
    size = json['size'];
    current = json['current'];
    searchCount = json['searchCount'];
    pages = json['pages'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.records != null) {
      data['records'] = this.records.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    data['size'] = this.size;
    data['current'] = this.current;
    data['searchCount'] = this.searchCount;
    data['pages'] = this.pages;
    return data;
  }
}

class CommentDetailModel {
  int attitude;
  String comment;
  String createBy;
  int createTime;
  int expertId;
  String expertName;
  String expression;
  int id;
  int lifeCaseId;
  String mobile;
  int responseSpeed;
  int statuz;
  int tech;
  String updateBy;
  int updateTime;
  int userId;
  String userName;
  String userUrl;

  CommentDetailModel(
      {this.attitude,
      this.comment,
      this.createBy,
      this.createTime,
      this.expertId,
      this.expertName,
      this.expression,
      this.id,
      this.lifeCaseId,
      this.mobile,
      this.responseSpeed,
      this.statuz,
      this.tech,
      this.updateBy,
      this.updateTime,
      this.userId,
      this.userName,
      this.userUrl});

  CommentDetailModel.fromJson(Map<String, dynamic> json) {
    attitude = json['attitude'];
    comment = json['comment'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    expertId = json['expertId'];
    expertName = json['expertName'];
    expression = json['expression'];
    id = json['id'];
    lifeCaseId = json['lifeCaseId'];
    mobile = json['mobile'];
    responseSpeed = json['responseSpeed'];
    statuz = json['statuz'];
    tech = json['tech'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    userId = json['userId'];
    userName = json['userName'];
    userUrl = json['userUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['attitude'] = this.attitude;
    data['comment'] = this.comment;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['expertId'] = this.expertId;
    data['expertName'] = this.expertName;
    data['expression'] = this.expression;
    data['id'] = this.id;
    data['lifeCaseId'] = this.lifeCaseId;
    data['mobile'] = this.mobile;
    data['responseSpeed'] = this.responseSpeed;
    data['statuz'] = this.statuz;
    data['tech'] = this.tech;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['userId'] = this.userId;
    data['userName'] = this.userName;
    data['userUrl'] = this.userUrl;
    return data;
  }
}
