@@ -62,35 +62,35 @@ Future<void> bootstrap(app_config.AppConfig appConfig) async {
62
62
HtDataClient <AppConfig > appConfigClient;
63
63
64
64
if (appConfig.environment == app_config.AppEnvironment .demo) {
65
- headlinesClient = HtDataInMemoryClient <Headline >(
65
+ headlinesClient = HtDataInMemory <Headline >(
66
66
toJson: (i) => i.toJson (),
67
67
getId: (i) => i.id,
68
68
initialData: headlinesFixturesData.map (Headline .fromJson).toList (),
69
69
);
70
- categoriesClient = HtDataInMemoryClient <Category >(
70
+ categoriesClient = HtDataInMemory <Category >(
71
71
toJson: (i) => i.toJson (),
72
72
getId: (i) => i.id,
73
73
initialData: categoriesFixturesData.map (Category .fromJson).toList (),
74
74
);
75
- countriesClient = HtDataInMemoryClient <Country >(
75
+ countriesClient = HtDataInMemory <Country >(
76
76
toJson: (i) => i.toJson (),
77
77
getId: (i) => i.id,
78
78
initialData: countriesFixturesData.map (Country .fromJson).toList (),
79
79
);
80
- sourcesClient = HtDataInMemoryClient <Source >(
80
+ sourcesClient = HtDataInMemory <Source >(
81
81
toJson: (i) => i.toJson (),
82
82
getId: (i) => i.id,
83
83
initialData: sourcesFixturesData.map (Source .fromJson).toList (),
84
84
);
85
- userContentPreferencesClient = HtDataInMemoryClient <UserContentPreferences >(
85
+ userContentPreferencesClient = HtDataInMemory <UserContentPreferences >(
86
86
toJson: (i) => i.toJson (),
87
87
getId: (i) => i.id,
88
88
);
89
- userAppSettingsClient = HtDataInMemoryClient <UserAppSettings >(
89
+ userAppSettingsClient = HtDataInMemory <UserAppSettings >(
90
90
toJson: (i) => i.toJson (),
91
91
getId: (i) => i.id,
92
92
);
93
- appConfigClient = HtDataInMemoryClient <AppConfig >(
93
+ appConfigClient = HtDataInMemory <AppConfig >(
94
94
toJson: (i) => i.toJson (),
95
95
getId: (i) => i.id,
96
96
initialData: [AppConfig .fromJson (appConfigFixtureData)],
0 commit comments