mirrored_repositories/MovieMemo/lib/src/data/datasources/remote/dto
import 'package:json_annotation/json_annotation.dart';

part 'belongs_to_collection_dto.g.dart';

@JsonSerializable()
class BelongsToCollectionDto {
  @JsonKey(name: "id")
  int? id;
  @JsonKey(name: "name")
  String? name;
  @JsonKey(name: "poster_path")
  String? posterPath;
  @JsonKey(name: "backdrop_path")
  String? backdropPath;

  BelongsToCollectionDto(
      {this.id, this.name, this.posterPath, this.backdropPath});

  factory BelongsToCollectionDto.fromJson(Map<String, dynamic> json) =>
      _$BelongsToCollectionDtoFromJson(json);

  Map<String, dynamic> toJson() => _$BelongsToCollectionDtoToJson(this);
}
