Track.fromJson constructor

Track.fromJson(
  1. Map json_
)

Implementation

Track.fromJson(core.Map json_)
    : this(
        releases: json_.containsKey('releases')
            ? (json_['releases'] as core.List)
                .map((value) => TrackRelease.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        track:
            json_.containsKey('track') ? json_['track'] as core.String : null,
      );