EmbeddedResource constructor
EmbeddedResource({
- required Content resource,
- Annotations? annotations,
- 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,
});