representation property

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

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

Implementation

@override
Map<String, String> get representation {
  String value = ascending ? field : ('-$field');
  return {'sort': value};
}