fetchSpecThread method
- String threadId
Fetch a feedback thread specified by threadId
.
Implementation
Future<List<Thread>> fetchSpecThread(String threadId) async {
List<Thread> threadResponse;
await _callRestAPI(_get, _feedbackBaseUrl,
contentType: 'application/x-www-form-urlencoded',
bodyFields: {'where': '{"objectId":"$threadId"}'},
onResponse: (response) => threadResponse =
ThreadResponse.fromJson(response as Map<String, dynamic>).results);
return threadResponse;
}