Device constructor
Device({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required DeviceProductData productData,
- required DeviceMetadata metadata,
- required List<
Relative> services, - String? identifyAction,
Creates a Device object.
Implementation
Device({
required super.type,
required super.id,
this.idV1 = "",
required this.productData,
required this.metadata,
required this.services,
String? identifyAction,
}) : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
'"$idV1" is not a valid `idV1`'),
_originalMetadata = metadata,
_originalIdentifyAction = identifyAction;