BelongsToCollection.fromMap constructor

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

Implementation

factory BelongsToCollection.fromMap(Map<String, dynamic> json) =>
    BelongsToCollection(
      id: json['id'] as int? ?? 0,
      name: json['name'] as String? ?? '',
      posterPath: json['poster_path'] as String? ?? '',
      backdropPath: json['backdrop_path'] as String? ?? '',
    );