toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'title': title,
    'subtitle': subtitle.map((subtitle) => subtitle.toMap()).toList(),
    'secondSubtitle': secondSubtitle.map((secondSubtitle) => secondSubtitle.toMap()).toList(),
    'description': description.map((description) => description.toMap()).toList(),
    'thumbnail': thumbnail,
    'contents': contents.map((content) => content.toMap()).toList(),
    'nextSearch': nextSearch?.toMap(),
  };
}