toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => {
      'title': title,
      'subtitle': subtitle,
      'artworkUrl': artworkUrl,
      'isLive': isLive,
      'durationMs': duration?.inMilliseconds,
    };