getContext method

  1. @override
Future<Result<Map<String, String>>> getContext({
  1. required String contextId,
})
override

Implementation

@override
Future<Result<Map<String, String>>> getContext({required String contextId}) {
  final path = 'contexts/$contextId';
  return http.get(
    uri: Uri.parse('$baseUrl/$path').toString(),
    success: (json) {
      return json;
    },
  );
}