VLMImage constructor
VLMImage({})
Implementation
factory VLMImage({
$core.String? filePath,
$core.List<$core.int>? encoded,
$core.List<$core.int>? rawRgb,
$core.String? base64,
$core.int? width,
$core.int? height,
VLMImageFormat? format,
$core.String? mediaType,
$core.String? name,
$fixnum.Int64? sizeBytes,
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? metadata,
}) {
final result = create();
if (filePath != null) result.filePath = filePath;
if (encoded != null) result.encoded = encoded;
if (rawRgb != null) result.rawRgb = rawRgb;
if (base64 != null) result.base64 = base64;
if (width != null) result.width = width;
if (height != null) result.height = height;
if (format != null) result.format = format;
if (mediaType != null) result.mediaType = mediaType;
if (name != null) result.name = name;
if (sizeBytes != null) result.sizeBytes = sizeBytes;
if (metadata != null) result.metadata.addEntries(metadata);
return result;
}