MediaPage.fromJson constructor

MediaPage.fromJson(
  1. Album album,
  2. dynamic json
)

Creates a range of media from platform channel protocol.

Implementation

MediaPage.fromJson(this.album, dynamic json)
    : newest = json['newest'],
      start = json['start'],
      total = json['total'],
      items = json['items'].map<Medium>((x) => Medium.fromJson(x)).toList();