mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
24 lines
603 B
Dart
24 lines
603 B
Dart
import 'top_left.dart';
|
|
import 'top_right.dart';
|
|
|
|
class TopShowRecent {
|
|
TopLeft? topLeft;
|
|
TopRight? topRight;
|
|
|
|
TopShowRecent({this.topLeft, this.topRight});
|
|
|
|
factory TopShowRecent.fromJson(Map<String, dynamic> json) => TopShowRecent(
|
|
topLeft: json['top_left'] == null
|
|
? null
|
|
: TopLeft.fromJson(json['top_left'] as Map<String, dynamic>),
|
|
topRight: json['top_right'] == null
|
|
? null
|
|
: TopRight.fromJson(json['top_right'] as Map<String, dynamic>),
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'top_left': topLeft?.toJson(),
|
|
'top_right': topRight?.toJson(),
|
|
};
|
|
}
|