toJson method

Map<String, dynamic> toJson(
  1. Lyric entity
)

Implementation

Map<String, dynamic> toJson(Lyric entity) {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['lyric'] = entity.lyric;
  data['startTime'] = entity.startTime?.inMilliseconds ?? 0;
  data['endTime'] = entity.endTime?.inMilliseconds ?? 0;
  data['isRemark'] = entity.isRemark;
  return data;
}