import 'top_left.dart'; import 'top_right.dart'; class TopShowRecent { TopLeft? topLeft; TopRight? topRight; TopShowRecent({this.topLeft, this.topRight}); factory TopShowRecent.fromJson(Map json) => TopShowRecent( topLeft: json['top_left'] == null ? null : TopLeft.fromJson(json['top_left'] as Map), topRight: json['top_right'] == null ? null : TopRight.fromJson(json['top_right'] as Map), ); Map toJson() => { 'top_left': topLeft?.toJson(), 'top_right': topRight?.toJson(), }; }