getCountry static method

Future<UserCountry> getCountry()

Implementation

static Future<UserCountry> getCountry() async {
  String url = "${AppUrls.baseUrlVSMS}/subscriberv2/v1/getcountry";
  final response = await _dio!.get(url);

  UserCountry userCountry = UserCountry.fromMap(response.data!);
  return userCountry;
}