initial commit
This commit is contained in:
18
lib/data/wikipedia/model.dart
Normal file
18
lib/data/wikipedia/model.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
typedef WikiArticleMapModel = Map<String, String>;
|
||||
|
||||
class WikiArticleModel {
|
||||
final String title;
|
||||
final String content;
|
||||
|
||||
WikiArticleModel({required this.title, required this.content});
|
||||
|
||||
WikiArticleModel.fromMap(WikiArticleMapModel map)
|
||||
: title = map['title']!,
|
||||
content = map['content']!;
|
||||
}
|
||||
|
||||
class WikiArticleQueryModel {
|
||||
final String title;
|
||||
|
||||
WikiArticleQueryModel({required this.title});
|
||||
}
|
||||
Reference in New Issue
Block a user