copyWith method
A copy with the given properties replaced; everything else, unknown keys included, is kept.
Implementation
ImageContent copyWith({
Annotations? annotations,
String? data,
String? mimeType,
Map<String, Object?>? meta,
}) =>
ImageContent.fromJson({
...toJson(),
if (annotations != null) 'annotations': $encode(annotations),
if (data != null) 'data': $encode(data),
if (mimeType != null) 'mimeType': $encode(mimeType),
if (meta != null) '_meta': $encode(meta),
});