CamsDataTypeMetaData.fromDataTypeMetaData constructor

CamsDataTypeMetaData.fromDataTypeMetaData({
  1. required DataTypeMetaData dataTypeMetaData,
  2. DataEventType dataEventType = DataEventType.EVENT,
  3. List<Permission> permissions = const [],
})

Create a new description of a data type based on the dataTypeMetaData. Default dataEventType is DataEventType.EVENT, and default permissions is empty (no permissions required).

Implementation

CamsDataTypeMetaData.fromDataTypeMetaData({
  required DataTypeMetaData dataTypeMetaData,
  this.dataEventType = DataEventType.EVENT,
  this.permissions = const [],
}) : super(
        type: dataTypeMetaData.type,
        displayName: dataTypeMetaData.displayName,
        timeType: dataTypeMetaData.timeType,
      );