Album.fromJson constructor

Album.fromJson(
  1. dynamic json,
  2. MediumType? mediumType,
  3. bool newest
)

Creates a album from platform channel protocol.

Implementation

Album.fromJson(dynamic json, this.mediumType, this.newest)
    : id = json['id'],
      name = json['name'],
      count = json['count'] ?? 0;