EmbeddedResource constructor

EmbeddedResource({
  1. required Content resource,
  2. Annotations? annotations,
  3. Meta? meta,
})

Implementation

factory EmbeddedResource({
  required Content resource,
  Annotations? annotations,
  Meta? meta,
}) => EmbeddedResource.fromMap({
  'resource': resource,
  'type': expectedType,
  if (annotations != null) 'annotations': annotations,
  if (meta != null) '_meta': meta,
});