TracksListResponse.fromJson constructor

TracksListResponse.fromJson(
  1. Map json_
)

Implementation

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