import 'package:json_annotation/json_annotation.dart';
import 'package:krow/core/data/models/event/full_address_model.dart';
import 'package:krow/core/sevices/create_event_service/data/models/create_event_shift_position_input_model.dart';

part 'create_event_shift_input_model.g.dart';

@JsonSerializable(fieldRename: FieldRename.snake)
class CreateEventShiftInputModel {
  final String name;
  final FullAddress address;
  final List<String>? contacts;
  final List<CreateEventShiftPositionInputModel> positions;

  CreateEventShiftInputModel(
      {required this.name,
      required this.address,
      required this.contacts,
      required this.positions});

  factory CreateEventShiftInputModel.fromJson(Map<String, dynamic> json) {
    return _$CreateEventShiftInputModelFromJson(json);
  }

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