toMap method

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

model -> map

Implementation

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