The service client is a template for an asynchronous restful communications api which allows us to communicate with the main FreshmanRPG project. It takes in a String called `baseURL` which tells it which server to target. It also has two type definitions called JSON and HEADER. `JSON` is an alias for `Map<String, dynamic>` and `HEADER` is an alias for `Map<String, String>`.
```dart
abstractclassServiceClient{
finalStringbaseURL;
constServiceClient({
requiredthis.baseURL,
});
///
/// Template for a get method.
///
Future<JSON>get({
requiredStringendpoint,
HEADER?headers,
});
///
/// Template for a post method.
///
Future<JSON>post({
requiredStringendpoint,
HEADER?headers,
requiredJSONbody,
});
}
```
For more information about restful apis, check [here](https://www.restapitutorial.com/lessons/httpmethods.html).