ImageContent constructor

ImageContent({
  1. required String data,
  2. required String mimeType,
  3. Annotations? annotations,
  4. Meta? meta,
})

Implementation

factory ImageContent({
  required String data,
  required String mimeType,
  Annotations? annotations,
  Meta? meta,
}) => ImageContent.fromMap({
  'data': data,
  'mimeType': mimeType,
  'type': expectedType,
  if (annotations != null) 'annotations': annotations,
  if (meta != null) '_meta': meta,
});