Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

杨树贤 / kefu_server

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Find file
Normal viewHistoryPermalink
Switch branch/tag
  • kefu_server
  • ui
  • kefu_workbench
  • lib
  • models
  • robot_model.dart
robot_model.dart 1.85 KB
Edit
chenxianqi's avatar
增加kefu_workbench
a18da124
 
chenxianqi committed 5 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
class RobotModel {
  int id;
  String nickname;
  String avatar;
  String welcome;
  String understand;
  String artificial;
  String keyword;
  String timeoutText;
  String noServices;
  String loogTimeWaitText;
  int isRun;
  int system;
  int platform;
  int updateAt;
  int createAt;

  RobotModel(
      {this.id,
      this.nickname,
      this.avatar,
      this.welcome,
      this.understand,
      this.artificial,
      this.keyword,
      this.timeoutText,
      this.noServices,
      this.loogTimeWaitText,
      this.isRun,
      this.system,
      this.platform,
      this.updateAt,
      this.createAt});

  RobotModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    welcome = json['welcome'];
    understand = json['understand'];
    artificial = json['artificial'];
    keyword = json['keyword'];
    timeoutText = json['timeout_text'];
    noServices = json['no_services'];
    loogTimeWaitText = json['loog_time_wait_text'];
    isRun = json['switch'];
    system = json['system'];
    platform = json['platform'];
    updateAt = json['update_at'];
    createAt = json['create_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['nickname'] = this.nickname;
    data['avatar'] = this.avatar;
    data['welcome'] = this.welcome;
    data['understand'] = this.understand;
    data['artificial'] = this.artificial;
    data['keyword'] = this.keyword;
    data['timeout_text'] = this.timeoutText;
    data['no_services'] = this.noServices;
    data['loog_time_wait_text'] = this.loogTimeWaitText;
    data['switch'] = this.isRun;
    data['system'] = this.system;
    data['platform'] = this.platform;
    data['update_at'] = this.updateAt;
    data['create_at'] = this.createAt;
    return data;
  }
}