/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-09-13 20:32:21
 * @LastEditTime : 2023-09-20 11:26:12
 * @Description  : Do not edit
 */
/*
 * @Author: XianKaiQun
 * @Date: 2020-09-14 14:36:59
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-09-17 10:12:27
 * @Description: 
 */
class DynamicItemModel {
  String? id;
  String? communityId;
  String? url;
  String? title;
  String? createdAt;
  bool? enable;
  String? createdBy;
  String? createdByName;
  String? imgUrl;
  String? publishAt;
  num? likes;
  bool? clickLike;
  String? updateAt;
  bool? isSelf;
  String? publishByName;
  String? type;
  String? classId;
  DynamicItemModel({
    this.id,
    this.communityId,
    this.url,
    this.title,
    this.createdAt,
    this.enable,
    this.createdBy,
    this.createdByName,
    this.imgUrl,
    this.publishAt,
    this.likes,
    this.clickLike,
    this.updateAt,
    this.isSelf,
    this.publishByName,
    this.type,
    this.classId,
  });

  DynamicItemModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    id = map['id'];
    communityId = map['communityId'];
    url = map['url'];
    title = map['title'];
    createdAt = map['createdAt'];
    enable = map['enable'];
    createdBy = map['createdBy'];
    createdByName = map['createdByName'];
    imgUrl = map['imgUrl'];
    publishAt = map['publishAt'];
    likes = map['likes'];
    clickLike = map['clickLike'];
    updateAt = map['updateAt'];
    isSelf = map['isSelf'];
    publishByName = map['publishByName'];
    type = map['type'];
    classId = map['classId'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['communityId'] = this.communityId;
    json['url'] = this.url;
    json['title'] = this.title;
    json['createdAt'] = this.createdAt;
    json['enable'] = this.enable;
    json['createdBy'] = this.createdBy;
    json['createdByName'] = this.createdByName;
    json['imgUrl'] = this.imgUrl;
    json['publishAt'] = this.publishAt;
    json['likes'] = this.likes;
    json['clickLike'] = this.clickLike;
    json['updateAt'] = this.updateAt;
    json['isSelf'] = this.isSelf;
    json['publishByName'] = this.publishByName;
    json['type'] = this.type;
    json['classId'] = this.classId;
    return json;
  }
}
