APIClient.dart code example
Example: APIClient.dart
@RestApi(baseUrl: "https://xyz.com")
abstract class APIClient {
factory APIClient(Dio dio) = _APIClient;
@GET("/getSplashData")
Future<SplashResponse> splashData();
@POST("/login")
@FormUrlEncoded()
Future<LoginResponse> loginPage(@Field("email")emailId,@Field("password")password);
}