forked from eatvio/eatvio_app
46 lines
1.3 KiB
Dart
46 lines
1.3 KiB
Dart
import 'package:eatvio_app/features/menu/models/blocked_users_model.dart';
|
|
import 'package:eatvio_app/features/menu/models/notification_settings_model.dart';
|
|
import 'package:eatvio_app/features/profile/models/profile_model.dart';
|
|
import 'fixture_reader.dart';
|
|
|
|
class MenuFixtures {
|
|
MenuFixtures._();
|
|
|
|
static BlockedUsersModel blockedUsersModel() {
|
|
return BlockedUsersModel.fromJson(
|
|
FixtureReader.readAsMap('menu/blocked_users_response.json'),
|
|
);
|
|
}
|
|
|
|
static BlockedUsersModel blockedUsersEmptyModel() {
|
|
return BlockedUsersModel.fromJson(
|
|
FixtureReader.readAsMap('menu/blocked_users_empty_response.json'),
|
|
);
|
|
}
|
|
|
|
static List<ProfileModel> blockedUsersList() {
|
|
return blockedUsersModel().profilesList;
|
|
}
|
|
|
|
static List<ProfileModel> blockedUsersEmptyList() {
|
|
return blockedUsersEmptyModel().profilesList;
|
|
}
|
|
|
|
static ProfileModel blockedUser() {
|
|
return blockedUsersList().first;
|
|
}
|
|
|
|
static NotificationSettingsModel notificationSettingsModel() {
|
|
return NotificationSettingsModel.fromJson(
|
|
FixtureReader.readAsMap('menu/notification_settings_response.json'),
|
|
);
|
|
}
|
|
|
|
static NotificationSettingsModel notificationSettingsUpdatedModel() {
|
|
return NotificationSettingsModel.fromJson(
|
|
FixtureReader.readAsMap('menu/notification_settings_updated_response.json'),
|
|
);
|
|
}
|
|
}
|
|
|