advertisementDrawerApi function
Implementation
Future advertisementDrawerApi(String moreLiveAppUrl) async {
final responseAdvertise = await http.get(Uri.parse(moreLiveAppUrl));
if (responseAdvertise.statusCode == 200) {
moreLiveApp = MoreLiveApp.fromJson(jsonDecode(responseAdvertise.body));
print("0000000${moreLiveApp?.record[0]}");
} else {
throw Exception('Failed to load album');
}
}