Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
28 lines
850 B
Dart
28 lines
850 B
Dart
import 'package:cutdex_sdk/project.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'agent_media_attachments.freezed.dart';
|
|
part 'agent_media_attachments.g.dart';
|
|
|
|
/// A project-media reference shown in chat and resolved through editor tools.
|
|
@freezed
|
|
abstract class AgentMediaAttachment with _$AgentMediaAttachment {
|
|
const AgentMediaAttachment._();
|
|
|
|
const factory AgentMediaAttachment({
|
|
required String id,
|
|
required String name,
|
|
required String kind,
|
|
}) = _AgentMediaAttachment;
|
|
|
|
factory AgentMediaAttachment.fromAsset(AssetDocument asset) =>
|
|
AgentMediaAttachment(
|
|
id: asset.id,
|
|
name: asset.name,
|
|
kind: asset.metadata['kind'] as String? ?? 'file',
|
|
);
|
|
|
|
factory AgentMediaAttachment.fromJson(Map<String, Object?> json) =>
|
|
_$AgentMediaAttachmentFromJson(json);
|
|
}
|