toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    //"type": type.index,
    "mid": mid,
    "updateTime": HycopUtils.dateTimeToDB(updateTime),
    "createTime": HycopUtils.dateTimeToDB(createTime),
    "parentMid": parentMid.value,
    HycopFactory.serverType == ServerType.supabase ? "order_" : "order": order.value,
    "hashTag": hashTag.value,
    "isRemoved": isRemoved.value,
    "realTimeKey": realTimeKey,
  };
}