import 'top_left.dart'; import 'top_right.dart'; class TopShow { TopLeft? topLeft; TopRight? topRight; TopShow({this.topLeft, this.topRight}); factory TopShow.fromJson(Map json) => TopShow( 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(), }; }