SpotifyMetadata.fromMap constructor

SpotifyMetadata.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory SpotifyMetadata.fromMap(Map<String, dynamic> json) => SpotifyMetadata(
      html: json["html"] == null ? null : json["html"],
      width: json["width"] == null ? null : json["width"],
      height: json["height"] == null ? null : json["height"],
      version: json["version"] == null ? null : json["version"],
      providerName:
          json["provider_name"] == null ? null : json["provider_name"],
      providerUrl: json["provider_url"] == null ? null : json["provider_url"],
      type: json["type"] == null ? null : json["type"],
      title: json["title"] == null ? null : json["title"],
      thumbnailUrl:
          json["thumbnail_url"] == null ? null : json["thumbnail_url"],
      thumbnailWidth:
          json["thumbnail_width"] == null ? null : json["thumbnail_width"],
      thumbnailHeight:
          json["thumbnail_height"] == null ? null : json["thumbnail_height"],
    );