representation property

  1. @override
Map<String, String> get representation
override

The representation of this parameter, how it will be passed to MBurger APIs.

Implementation

@override
Map<String, String> get representation {
  String key = 'filter[elements.geofence]';
  List<String> valueStrings = [
    northEastLatitude.toString(),
    southWestLatitude.toString(),
    northEastLongitude.toString(),
    southWestLongitude.toString(),
  ];
  String value = valueStrings.join(',');
  return {key: value};
}