13 lines
326 B
Dart
13 lines
326 B
Dart
import 'package:news/utils/api.dart';
|
|
|
|
class GetUserByIdRemoteDataSource {
|
|
Future<dynamic> getUserById() async {
|
|
try {
|
|
final result = await Api.sendApiRequest(body: {}, url: Api.getUserByIdApi);
|
|
return result;
|
|
} catch (e) {
|
|
throw ApiMessageAndCodeException(errorMessage: e.toString());
|
|
}
|
|
}
|
|
}
|