mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
24 lines
718 B
Dart
24 lines
718 B
Dart
import 'package:PiliPlus/models/live/live_emoticons/top_left.dart';
|
|
import 'package:PiliPlus/models/live/live_emoticons/top_right.dart';
|
|
|
|
class TopShow {
|
|
TopLeft? topLeft;
|
|
TopRight? topRight;
|
|
|
|
TopShow({this.topLeft, this.topRight});
|
|
|
|
factory TopShow.fromJson(Map<String, dynamic> json) => TopShow(
|
|
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(),
|
|
};
|
|
}
|