EntertainmentConfiguration constructor

EntertainmentConfiguration({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. required EntertainmentConfigurationMetadata metadata,
  5. String name = "",
  6. required String configurationType,
  7. required String status,
  8. required Relative activeStreamer,
  9. required EntertainmentConfigurationStreamProxy streamProxy,
  10. required List<EntertainmentConfigurationChannel> channels,
  11. required List<EntertainmentConfigurationLocation> locations,
  12. required List<Relative> lightServices,
  13. String? action,
})

Creates a EntertainmentConfiguration object.

Implementation

EntertainmentConfiguration({
  required super.type,
  required super.id,
  this.idV1 = "",
  required this.metadata,
  this.name = "",
  required this.configurationType,
  required this.status,
  required this.activeStreamer,
  required this.streamProxy,
  required this.channels,
  required this.locations,
  required this.lightServices,
  this.action,
})  : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
          '"$idV1" is not a valid `idV1`'),
      assert(name.isEmpty || Validators.isValidName(name),
          "`name` must be between 1 and 32 characters (inclusive)"),
      _originalMetadata = metadata,
      _originalConfigurationType = configurationType,
      _originalAction = action,
      _originalStreamProxy = streamProxy.copyWith(),
      _originalLocations =
          locations.map((location) => location.copyWith()).toList();