toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {
    'imageUrl': imageUrl,
    'content': content,
    'title': title,
    'eventId': eventId,
    'urlForVisitor': urlForVisitor,
    'urlForStaff': urlForStaff,
    'memo': memo,
    'dedup': dedup,
    'visibility': visibility,
    'customizeMsgType': customizeMsgType
  };
  map.removeWhere((key, value) => value == null);
  return map;
}