Album.fromJson constructor

Album.fromJson(
  1. dynamic json
)

Creates a album from platform channel protocol.

Implementation

Album.fromJson(dynamic json)
    : id = json['id'],
      mediumType = jsonToMediumType(json['mediumType']),
      name = json['name'],
      count = json['count'];