getRequestArgs method

Map<String, dynamic> getRequestArgs()

Implementation

Map<String, dynamic> getRequestArgs() {
  var map = <String, dynamic>{};
  if (type != null) {
    map['type'] = type!;
  }
  if (contractIds != null) {
    map['contractIds'] = contractIds!;
  }
  if (topics != null) {
    List<List<String>> values = List<List<String>>.empty(growable: true);
    for (TopicFilter filter in topics!) {
      values.add(filter.getRequestArgs());
    }
    map['topics'] = values;
  }
  return map;
}