fromMap method

void fromMap(
  1. Map<String, dynamic> map
)

Implementation

void fromMap(Map<String, dynamic> map) {
  _mid = map["mid"];
  _updateTime = HycopUtils.dateTimeFromDB(map["updateTime"]);
  _createTime =
      map["createTime"] == null ? _updateTime : HycopUtils.dateTimeFromDB(map["createTime"]);
  parentMid.setDD(map["parentMid"] ?? '', save: false, noUndo: true);
  order.setDD(map["order"] ?? 1, save: false, noUndo: true);
  hashTag.setDD(map["hashTag"] ?? '', save: false, noUndo: true);
  isRemoved.setDD(map["isRemoved"] ?? false, save: false, noUndo: true);
  String? rtKey = map["realTimeKey"];
  if (rtKey != null && rtKey.isNotEmpty) _realTimeKey = rtKey;
}