class Activity {
  Activity();

  String id;
  String createTime;
  dynamic createUser;
  String updateTime;
  dynamic updateUser;
  String storeId;
  String mainTitle;
  String viceTitle;
  String content;
  String coverImg;
  String startTime;
  String endTime;
  int state;
  int isDelete;
  int likes;
  bool liked;
  int viewers;
  String storeName;

  factory Activity.fromJson(Map<String, dynamic> json) => Activity()
    ..id = json['id']
    ..createTime = json['createTime']
    ..createUser = json['createUser']
    ..updateTime = json['updateTime']
    ..updateUser = json['updateUser']
    ..storeId = json['storeId']
    ..mainTitle = json['mainTitle']
    ..viceTitle = json['viceTitle']
    ..content = json['content']
    ..coverImg = json['coverImg']
    ..startTime = json['startTime']
    ..endTime = json['endTime']
    ..state = json['state']
    ..isDelete = json['isDelete']
    ..likes = json["likes"]
    ..liked = json["liked"]
    ..viewers = json["viewers"]
    ..storeName = json['storeName'];

  Map<String, dynamic> toJson() => {
        'id': this.id,
        'createTime': this.createTime,
        'createUser': this.createUser,
        'updateTime': this.updateTime,
        'updateUser': this.updateUser,
        'storeId': this.storeId,
        'mainTitle': this.mainTitle,
        'viceTitle': this.viceTitle,
        'content': this.content,
        'coverImg': this.coverImg,
        'startTime': this.startTime,
        'endTime': this.endTime,
        'state': this.state,
        'isDelete': this.isDelete,
        'likes': this.likes,
        'liked': this.liked,
        'viewers': this.viewers,
        'storeName': this.storeName
      };

}