toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'title': title.toMap(),
    'author': author.toMap(),
    'thumbnail': thumbnail,
    'duration': duration,
    'streamUrl': streamUrl.toString(),
  };
}