# Class DeviceMapContributor

Namespace
  adas_core.Infrastructure.Utils.MongoMaps

Assembly
  adas-core.Infrastructure.dll

Represents a contributor that provides device-related mapping logic for entities. Implements the IEntityMapContributor interface to participate in the entity mapping process.

    public class DeviceMapContributor : IEntityMapContributor

Inheritance
  object
  DeviceMapContributor

Implements
  IEntityMapContributor

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Methods

### RegisterMaps()

Registers BSON class maps for DeviceActionType, DeviceAction, DeviceSettings, and Device types used in MongoDB serialization.

    public void RegisterMaps()

#### Remarks

Each map is only registered if no class map is already registered for the type. The registration applies auto-mapping and customizes serialization for enum members (stored as strings), applies default values for required properties, and configures nullable members to be ignored when null.