import 'package:json_annotation/json_annotation.dart';
import 'media_image.dart';
part '../../../_generated/data/remote/models/property_event.g.dart';
@JsonSerializable(fieldRename: FieldRename.snake)
class PropertyEvent {
final int id;
final String title;
final String subTitle;
final String? ctaLink;
final MediaImage heroImage;
const PropertyEvent({
required this.id,
required this.title,
required this.subTitle,
required this.ctaLink,
required this.heroImage,
});
factory PropertyEvent.fromJson(Map<String, dynamic> json) =>
_$PropertyEventFromJson(json);
Map<String, dynamic> toJson() => _$PropertyEventToJson(this);
}