OutputDescriptor constructor

OutputDescriptor({
  1. String? id,
  2. required String schema,
  3. String? name,
  4. String? description,
  5. dynamic styles,
  6. DisplayProperty? display,
})

Implementation

OutputDescriptor(
    {String? id,
    required this.schema,
    this.name,
    this.description,
    this.styles,
    this.display})
    : id = id ?? Uuid().v4() {
  if (styles != null) {
    if (styles is! String || styles is! EntityStyles) {
      throw Exception('unexpected Datatype for styles property');
    }
  }
}