copyWithWrapped method

AlexaDevice copyWithWrapped({
  1. Wrapped<String?>? deviceID,
  2. Wrapped<Map<String, dynamic>?>? supportedInterfaces,
  3. Wrapped<String?>? persistentEndpointID,
})

Implementation

AlexaDevice copyWithWrapped(
    {Wrapped<String?>? deviceID,
    Wrapped<Map<String, dynamic>?>? supportedInterfaces,
    Wrapped<String?>? persistentEndpointID}) {
  return AlexaDevice(
      deviceID: (deviceID != null ? deviceID.value : this.deviceID),
      supportedInterfaces: (supportedInterfaces != null
          ? supportedInterfaces.value
          : this.supportedInterfaces),
      persistentEndpointID: (persistentEndpointID != null
          ? persistentEndpointID.value
          : this.persistentEndpointID));
}