Bridge constructor

Bridge({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. String? applicationKey,
  5. String? clientKey,
  6. String? ipAddress,
  7. required Relative owner,
  8. required String bridgeId,
  9. required String timeZone,
})

Creates a Bridge object.

Implementation

Bridge({
  required super.type,
  required super.id,
  this.idV1 = "",
  this.applicationKey,
  this.clientKey,
  this.ipAddress,
  required this.owner,
  required this.bridgeId,
  required this.timeZone,
})  : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
          '"$idV1" is not a valid `idV1`'),
      assert(ipAddress == null || Validators.isValidIpAddress(ipAddress),
          '"$ipAddress" is not a valid `ipAddress`');