xxxxxxxxxx
class APIConstant {
static RequestKeys requestKeys = const RequestKeys();
static ResponseKeys responseKeys = const ResponseKeys();
static const String baseUrl = 'Your Project base url';
}
class RequestKeys {
const RequestKeys();
String get email => 'email';
String get password => 'password';
}
class ResponseKeys {
const ResponseKeys();
String get data => 'data';
String get status => 'status';
}
print(APIConstant.requestKeys.email);
print(APIConstant.requestKeys.email);
print(APIConstant.baseUrl);