NBResponse constructor

NBResponse(
  1. Map<String, dynamic> nb
)

Implementation

NBResponse(Map<String, dynamic> nb) {
  // The type coercion is necessary as maps return String?
  // which cannot be assigned to type String. Url is always
  // present in both static and gif response
  url = nb['url'] as String;
  artist_href = nb['artist_href'];
  artist_name = nb['artist_name'];
  source_url = nb['source_url'];
  anime_name = nb['anime_name'];
}