PlayedSong.fromJson constructor

PlayedSong.fromJson(
  1. dynamic json
)

Implementation

PlayedSong.fromJson(dynamic json)
    : lastPlayedDate = DateTime.fromMillisecondsSinceEpoch(
          (json['lastPlayedDate'] as num).truncate()),
      super.fromJson(json);