toMap method

Map<String, dynamic> toMap()

Return Map representation of LocationQuery for communication to the native platform.

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> query = {};
  if (this.limit != null) query["limit"] = this.limit;
  if (this.offset != null) query["offset"] = this.offset;
  if (this.page != null) query["page"] = this.page;
  if (this.order != null) query["order"] = this.order;
  return query;
}