mirrored_repositories/beer-app/lib/feature_display_beer
import 'package:json_annotation/json_annotation.dart';

part 'beer_model.g.dart';

@JsonSerializable(createToJson: false)
class BeerModel {
  int id;

  String name;

  String tagline;

  String description;

  @JsonKey(name: 'image_url')
  String? imageUrl;

  BeerModel({
    required this.id,
    required this.name,
    required this.tagline,
    required this.description,
    this.imageUrl,
  });

  factory BeerModel.fromJson(Map<String, dynamic> json) =>
      _$BeerModelFromJson(json);
}
