fetchAppConfig method

Future<PublicAppConfig> fetchAppConfig()

Fetches public app configuration.

Implementation

Future<PublicAppConfig> fetchAppConfig() async {
  final json = await _sendJson(
    method: 'GET',
    path: '/api/v1/public/config/${config.appKey}',
  );
  return PublicAppConfig.fromJson(json);
}