initializeService static method

Future<AppUpdate?> initializeService(
  1. dynamic baseUrl
)

Implementation

static Future<AppUpdate?> initializeService(baseUrl) async {
  final response =
      await httpClient.get(Uri.parse(baseUrl + 'contentDetails/AppUpdation'));

  if (response.statusCode == 200 || response.statusCode == 201) {
    return appUpdateFromJson(response.body);
  } else {
    return null;
  }
}