toJson method

JsonMap toJson()

Returns this TimedLyrics instance as JsonMap.

Implementation

JsonMap toJson() => {
  'lyrics': lyrics,
  if (source != null) 'source': source,
  'hasTimestamps': true,
};