getPlans static method
Implementation
static Future<PlansModel> getPlans() async {
// SharedPreferences sharedPreferences = await DeviceStorage().getInstance();
// String plansJson = sharedPreferences.getString(DeviceStorage.plans) ?? "";
// if (plansJson.isNotEmpty) {
// var data = jsonDecode(plansJson);
// return PlansModel.fromMap(data);
// }
String endpoint = "${AppUrls.baseUrlVSMS}/subscriberv2/v1/plan";
final response = await _dio!.get(endpoint);
// await sharedPreferences.setString(
// DeviceStorage.plans, jsonEncode(response.data));
return PlansModel.fromMap(response.data);
}