Document constructor

Document({
  1. Map<String, dynamic>? data,
  2. Map<String, Link?> links = const {},
  3. ComponentMeta? meta,
  4. required ElementTypeEnum? type,
})

Returns a new Document instance.

Implementation

Document({
  this.data,
  Map<String, Link?> links = const {},
  ComponentMeta? meta,
  required ElementTypeEnum? type
}):super(type: type, links: links,  meta: meta);