mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 10:52:05 +00:00
22 lines
562 B
Dart
22 lines
562 B
Dart
import 'package:mangayomi/eval/model/m_manga.dart';
|
|
|
|
class MPages {
|
|
List<MManga> list;
|
|
bool hasNextPage;
|
|
MPages({required this.list, this.hasNextPage = false});
|
|
|
|
factory MPages.fromJson(Map<String, dynamic> json) {
|
|
return MPages(
|
|
list:
|
|
json['list'] != null
|
|
? (json['list'] as List).map((e) => MManga.fromJson(e)).toList()
|
|
: [],
|
|
hasNextPage: json['hasNextPage'],
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'list': list.map((v) => v.toJson()).toList(),
|
|
'hasNextPage': hasNextPage,
|
|
};
|
|
}
|