toMap method

  1. @override
Map<String, Object?> toMap()
override

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return Map.from(super.toMap())
    ..addAll({
      'keyword': this.keyword,
      'tags': this.tags?.map((e) => e).toList(),
      'city': this.city,
      'isCityLimit': this.isCityLimit,
      'scope': this.scope?.index,
      'filter': this.filter?.toMap(),
      'pageIndex': this.pageIndex,
      'pageSize': this.pageSize,
      'extensionsAdcode': this.extensionsAdcode,
    });
}