class Content {
  final int order;
  final String? text;
  final String? audio;
  final String? video;
  final String? image;
  final String? largeImage;
  final String? caption;

  const Content({
    required this.order,
    required this.text,
    required this.audio,
    required this.video,
    required this.image,
    required this.largeImage,
    required this.caption,
  });

  factory Content.fromJson(Map<String, dynamic> json) => Content(
        order: json['order'],
        text: json['text'],
        audio: json['audio'],
        video: json['video'],
        image: json['image'],
        largeImage: json['largeImage'],
        caption: json['caption'],
      );

  Map<String, dynamic> toJson() => {
        'order': order,
        'text': text,
        'audio': audio,
        'video': video,
        'image': image,
        'largeImage': largeImage,
        'caption': caption,
      };
}
