process method

  1. @override
Future<Map<String, dynamic>> process()
override

Internal method used by dash_agent to convert the shared DataSource to json format that can be sent on the web

Note: Ideally, this method is not supposed to be overriden by the child objects and should not be altered. It is called automatically by the framework.

Implementation

@override
Future<Map<String, dynamic>> process() async {
  final codeFilterJson = await codeFilter?.process();
  final issueFilterJson = await issueFilter?.process();
  return {
    'id': hashCode.toString(),
    'type': 'github',
    'github_url': url,
    'access_token': accessToken,
    'code_filter': codeFilterJson,
    'issue_filter': issueFilterJson,
    'version': minCliVersion
  };
}