import 'package:ambito/src/entity/entities.dart';
import 'package:isar/isar.dart';
import 'package:json_annotation/json_annotation.dart';

part 'service_provider_contact_person.g.dart';

@JsonSerializable(explicitToJson: true)
@collection
class ServiceProviderContactPerson extends BaseEntity with EntityWithIdAndName {
  ServiceProviderContactPerson();

  @JsonKey(name: 'E-Mail')
  String? email;
  @JsonKey(name: 'Telefonnummer')
  String? phoneNumber;
  @JsonKey(name: 'Kurzbeschreibung')
  String? description;
  @JsonKey(name: '09 Dienstleister')
  List<IdValue>? serviceProvider;
  @JsonKey(name: '00 Maßnahmen_Main')
  List<IdValue>? measures;

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

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