MediaPage.fromJson constructor

MediaPage.fromJson(
  1. Album album,
  2. dynamic json, {
  3. bool? lightWeight,
})

Creates a range of media from platform channel protocol.

Implementation

MediaPage.fromJson(this.album, dynamic json, {this.lightWeight})
    : start = json['start'] ?? 0,
      items = json['items'].map<Medium>((x) => Medium.fromJson(x)).toList();