forked from eatvio/eatvio_app
46 lines
1.4 KiB
Dart
46 lines
1.4 KiB
Dart
import 'package:eatvio_app/features/profile/models/profile_model.dart';
|
|
import 'package:eatvio_app/features/settings/models/oauth_account_model.dart';
|
|
import 'package:eatvio_app/features/settings/models/profile_settings_model.dart';
|
|
import 'fixture_reader.dart';
|
|
|
|
class SettingsFixtures {
|
|
SettingsFixtures._();
|
|
|
|
static ProfileSettingsModel profileSettingsModel() {
|
|
return ProfileSettingsModel.fromJson(
|
|
FixtureReader.readAsMap('settings/profile_settings_response.json'),
|
|
);
|
|
}
|
|
|
|
static ProfileSettingsModel profileSettingsUpdatedModel() {
|
|
return ProfileSettingsModel.fromJson(
|
|
FixtureReader.readAsMap('settings/profile_settings_updated_response.json'),
|
|
);
|
|
}
|
|
|
|
static ProfileDetailsModel profileDetailsModel() {
|
|
return ProfileDetailsModel.fromJson(
|
|
FixtureReader.readAsMap('profile/profile_details_response.json'),
|
|
);
|
|
}
|
|
|
|
static ProfileModel profileModel() {
|
|
return ProfileModel.fromJson(
|
|
FixtureReader.readAsMap('profile/my_profile_response.json'),
|
|
);
|
|
}
|
|
|
|
static OAuthAccountsResponseModel oauthAccountsResponseModel() {
|
|
return OAuthAccountsResponseModel.fromJson(
|
|
FixtureReader.readAsMap('settings/oauth_accounts_response.json'),
|
|
);
|
|
}
|
|
|
|
static OAuthAccountsResponseModel oauthAccountsWithDataResponseModel() {
|
|
return OAuthAccountsResponseModel.fromJson(
|
|
FixtureReader.readAsMap('settings/oauth_accounts_with_data_response.json'),
|
|
);
|
|
}
|
|
}
|
|
|