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.
357 lines
10 KiB
Dart
357 lines
10 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// coverage:ignore-file
|
|
// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of 'agent_media_attachments.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
T _$identity<T>(T value) => value;
|
|
|
|
/// @nodoc
|
|
mixin _$AgentMediaAttachment {
|
|
String get id;
|
|
String get name;
|
|
String get kind;
|
|
|
|
/// Create a copy of AgentMediaAttachment
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
$AgentMediaAttachmentCopyWith<AgentMediaAttachment> get copyWith =>
|
|
_$AgentMediaAttachmentCopyWithImpl<AgentMediaAttachment>(
|
|
this as AgentMediaAttachment,
|
|
_$identity,
|
|
);
|
|
|
|
/// Serializes this AgentMediaAttachment to a JSON map.
|
|
Map<String, dynamic> toJson();
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
final _this = this as AgentMediaAttachment;
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is AgentMediaAttachment &&
|
|
(identical(other.id, _this.id) || other.id == _this.id) &&
|
|
(identical(other.name, _this.name) || other.name == _this.name) &&
|
|
(identical(other.kind, _this.kind) || other.kind == _this.kind));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode {
|
|
final _this = this as AgentMediaAttachment;
|
|
return Object.hash(runtimeType, _this.id, _this.name, _this.kind);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
final _this = this as AgentMediaAttachment;
|
|
return 'AgentMediaAttachment(id: ${_this.id}, name: ${_this.name}, kind: ${_this.kind})';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class $AgentMediaAttachmentCopyWith<$Res> {
|
|
factory $AgentMediaAttachmentCopyWith(
|
|
AgentMediaAttachment value,
|
|
$Res Function(AgentMediaAttachment) _then,
|
|
) = _$AgentMediaAttachmentCopyWithImpl;
|
|
@useResult
|
|
$Res call({String id, String name, String kind});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AgentMediaAttachmentCopyWithImpl<$Res>
|
|
implements $AgentMediaAttachmentCopyWith<$Res> {
|
|
_$AgentMediaAttachmentCopyWithImpl(this._self, this._then);
|
|
|
|
final AgentMediaAttachment _self;
|
|
final $Res Function(AgentMediaAttachment) _then;
|
|
|
|
/// Create a copy of AgentMediaAttachment
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? id = null, Object? name = null, Object? kind = null}) {
|
|
return _then(
|
|
AgentMediaAttachment(
|
|
id: null == id
|
|
? _self.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _self.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
kind: null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// Adds pattern-matching-related methods to [AgentMediaAttachment].
|
|
extension AgentMediaAttachmentPatterns on AgentMediaAttachment {
|
|
/// A variant of `map` that fallback to returning `orElse`.
|
|
///
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case final Subclass value:
|
|
/// return ...;
|
|
/// case _:
|
|
/// return orElse();
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>(
|
|
TResult Function(_AgentMediaAttachment value)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment() when $default != null:
|
|
return $default(_that);
|
|
case _:
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
/// A `switch`-like method, using callbacks.
|
|
///
|
|
/// Callbacks receives the raw object, upcasted.
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case final Subclass value:
|
|
/// return ...;
|
|
/// case final Subclass2 value:
|
|
/// return ...;
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>(
|
|
TResult Function(_AgentMediaAttachment value) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment():
|
|
return $default(_that);
|
|
case _:
|
|
throw StateError('Unexpected subclass');
|
|
}
|
|
}
|
|
|
|
/// A variant of `map` that fallback to returning `null`.
|
|
///
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case final Subclass value:
|
|
/// return ...;
|
|
/// case _:
|
|
/// return null;
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>(
|
|
TResult? Function(_AgentMediaAttachment value)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment() when $default != null:
|
|
return $default(_that);
|
|
case _:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// A variant of `when` that fallback to an `orElse` callback.
|
|
///
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case Subclass(:final field):
|
|
/// return ...;
|
|
/// case _:
|
|
/// return orElse();
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
TResult Function(String id, String name, String kind)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment() when $default != null:
|
|
return $default(_that.id, _that.name, _that.kind);
|
|
case _:
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
/// A `switch`-like method, using callbacks.
|
|
///
|
|
/// As opposed to `map`, this offers destructuring.
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case Subclass(:final field):
|
|
/// return ...;
|
|
/// case Subclass2(:final field2):
|
|
/// return ...;
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>(
|
|
TResult Function(String id, String name, String kind) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment():
|
|
return $default(_that.id, _that.name, _that.kind);
|
|
case _:
|
|
throw StateError('Unexpected subclass');
|
|
}
|
|
}
|
|
|
|
/// A variant of `when` that fallback to returning `null`
|
|
///
|
|
/// It is equivalent to doing:
|
|
/// ```dart
|
|
/// switch (sealedClass) {
|
|
/// case Subclass(:final field):
|
|
/// return ...;
|
|
/// case _:
|
|
/// return null;
|
|
/// }
|
|
/// ```
|
|
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
TResult? Function(String id, String name, String kind)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _AgentMediaAttachment() when $default != null:
|
|
return $default(_that.id, _that.name, _that.kind);
|
|
case _:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _AgentMediaAttachment extends AgentMediaAttachment {
|
|
const _AgentMediaAttachment({
|
|
required this.id,
|
|
required this.name,
|
|
required this.kind,
|
|
}) : super._();
|
|
factory _AgentMediaAttachment.fromJson(Map<String, dynamic> json) =>
|
|
_$AgentMediaAttachmentFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String kind;
|
|
|
|
/// Create a copy of AgentMediaAttachment
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
_$AgentMediaAttachmentCopyWith<_AgentMediaAttachment> get copyWith =>
|
|
__$AgentMediaAttachmentCopyWithImpl<_AgentMediaAttachment>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$AgentMediaAttachmentToJson(this);
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _AgentMediaAttachment &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.kind, kind) || other.kind == kind));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode {
|
|
return Object.hash(runtimeType, id, name, kind);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AgentMediaAttachment(id: $id, name: $name, kind: $kind)';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class _$AgentMediaAttachmentCopyWith<$Res>
|
|
implements $AgentMediaAttachmentCopyWith<$Res> {
|
|
factory _$AgentMediaAttachmentCopyWith(
|
|
_AgentMediaAttachment value,
|
|
$Res Function(_AgentMediaAttachment) _then,
|
|
) = __$AgentMediaAttachmentCopyWithImpl;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String name, String kind});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$AgentMediaAttachmentCopyWithImpl<$Res>
|
|
implements _$AgentMediaAttachmentCopyWith<$Res> {
|
|
__$AgentMediaAttachmentCopyWithImpl(this._self, this._then);
|
|
|
|
final _AgentMediaAttachment _self;
|
|
final $Res Function(_AgentMediaAttachment) _then;
|
|
|
|
/// Create a copy of AgentMediaAttachment
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$Res call({Object? id = null, Object? name = null, Object? kind = null}) {
|
|
return _then(
|
|
_AgentMediaAttachment(
|
|
id: null == id
|
|
? _self.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _self.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
kind: null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|