23 lines
697 B
Dart
23 lines
697 B
Dart
|
|
|
|
import 'package:regroup/Common/api_urls.dart';
|
|
import 'package:regroup/Common/base_manager.dart';
|
|
import 'package:regroup/Common/controller/data/network/network_api.dart';
|
|
import 'package:regroup/Main_Screens/Community/Model/fetchicons.dart';
|
|
|
|
FetchlikeIconsModel? fetchlikeIconsModel;
|
|
|
|
class Communityallgetmethod {
|
|
Future<ResponseData<dynamic>> getLikeicons() async {
|
|
final response = await NetworkApiServices().getApi(
|
|
ApiUrls.getLikeicons,
|
|
// optionalpar: false
|
|
);
|
|
if (response.status == ResponseStatus.SUCCESS) {
|
|
fetchlikeIconsModel = FetchlikeIconsModel.fromJson(response.data);
|
|
// log(likeiconsobj!.data.toString());
|
|
}
|
|
return response;
|
|
}
|
|
}
|