EntertainmentConfiguration constructor
EntertainmentConfiguration({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required EntertainmentConfigurationMetadata metadata,
- String name = "",
- required String configurationType,
- required String status,
- required Relative activeStreamer,
- required EntertainmentConfigurationStreamProxy streamProxy,
- required List<
EntertainmentConfigurationChannel> channels, - required List<
EntertainmentConfigurationLocation> locations, - required List<
Relative> lightServices, - 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();