mnemo_cards/mnemo_cards_common/lib/src/dtos/voice_dto.g.dart
Dmitry 7aa12d0c59
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Mobile App CI / test (push) Waiting to run
Mobile App CI / build-android (push) Blocked by required conditions
Mobile App CI / build-ios (push) Blocked by required conditions
Web App CI / test (push) Waiting to run
Web App CI / build (push) Blocked by required conditions
Deploy Admin Panel / Deploy Admin Panel (push) Waiting to run
Deploy Admin Panel / Admin Panel Verification (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Deploy Telegram Bot / Deploy Telegram Bot (push) Waiting to run
minio
2025-12-19 03:56:58 +03:00

150 lines
4.8 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'voice_dto.dart';
// **************************************************************************
// CopyWithGenerator
// **************************************************************************
abstract class _$VoiceDtoCWProxy {
VoiceDto id(String id);
VoiceDto phrase(String phrase);
VoiceDto path(String path);
VoiceDto speaker(String speaker);
VoiceDto url(String? url);
VoiceDto voiceUrl(String? voiceUrl);
VoiceDto presignedUrl(String? presignedUrl);
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `VoiceDto(...).copyWith.fieldName(value)`.
///
/// Example:
/// ```dart
/// VoiceDto(...).copyWith(id: 12, name: "My name")
/// ```
VoiceDto call({
String id,
String phrase,
String path,
String speaker,
String? url,
String? voiceUrl,
String? presignedUrl,
});
}
/// Callable proxy for `copyWith` functionality.
/// Use as `instanceOfVoiceDto.copyWith(...)` or call `instanceOfVoiceDto.copyWith.fieldName(value)` for a single field.
class _$VoiceDtoCWProxyImpl implements _$VoiceDtoCWProxy {
const _$VoiceDtoCWProxyImpl(this._value);
final VoiceDto _value;
@override
VoiceDto id(String id) => call(id: id);
@override
VoiceDto phrase(String phrase) => call(phrase: phrase);
@override
VoiceDto path(String path) => call(path: path);
@override
VoiceDto speaker(String speaker) => call(speaker: speaker);
@override
VoiceDto url(String? url) => call(url: url);
@override
VoiceDto voiceUrl(String? voiceUrl) => call(voiceUrl: voiceUrl);
@override
VoiceDto presignedUrl(String? presignedUrl) =>
call(presignedUrl: presignedUrl);
@override
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `VoiceDto(...).copyWith.fieldName(value)`.
///
/// Example:
/// ```dart
/// VoiceDto(...).copyWith(id: 12, name: "My name")
/// ```
VoiceDto call({
Object? id = const $CopyWithPlaceholder(),
Object? phrase = const $CopyWithPlaceholder(),
Object? path = const $CopyWithPlaceholder(),
Object? speaker = const $CopyWithPlaceholder(),
Object? url = const $CopyWithPlaceholder(),
Object? voiceUrl = const $CopyWithPlaceholder(),
Object? presignedUrl = const $CopyWithPlaceholder(),
}) {
return VoiceDto(
id: id == const $CopyWithPlaceholder() || id == null
? _value.id
// ignore: cast_nullable_to_non_nullable
: id as String,
phrase: phrase == const $CopyWithPlaceholder() || phrase == null
? _value.phrase
// ignore: cast_nullable_to_non_nullable
: phrase as String,
path: path == const $CopyWithPlaceholder() || path == null
? _value.path
// ignore: cast_nullable_to_non_nullable
: path as String,
speaker: speaker == const $CopyWithPlaceholder() || speaker == null
? _value.speaker
// ignore: cast_nullable_to_non_nullable
: speaker as String,
url: url == const $CopyWithPlaceholder()
? _value.url
// ignore: cast_nullable_to_non_nullable
: url as String?,
voiceUrl: voiceUrl == const $CopyWithPlaceholder()
? _value.voiceUrl
// ignore: cast_nullable_to_non_nullable
: voiceUrl as String?,
presignedUrl: presignedUrl == const $CopyWithPlaceholder()
? _value.presignedUrl
// ignore: cast_nullable_to_non_nullable
: presignedUrl as String?,
);
}
}
extension $VoiceDtoCopyWith on VoiceDto {
/// Returns a callable class used to build a new instance with modified fields.
/// Example: `instanceOfVoiceDto.copyWith(...)` or `instanceOfVoiceDto.copyWith.fieldName(...)`.
// ignore: library_private_types_in_public_api
_$VoiceDtoCWProxy get copyWith => _$VoiceDtoCWProxyImpl(this);
}
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
VoiceDto _$VoiceDtoFromJson(Map<String, dynamic> json) => VoiceDto(
id: json['id'] as String,
phrase: json['phrase'] as String,
path: json['path'] as String,
speaker: json['speaker'] as String,
url: json['url'] as String?,
voiceUrl: json['voice_url'] as String?,
presignedUrl: json['presigned_url'] as String?,
);
Map<String, dynamic> _$VoiceDtoToJson(VoiceDto instance) => <String, dynamic>{
'id': instance.id,
'phrase': instance.phrase,
'path': instance.path,
'speaker': instance.speaker,
'url': instance.url,
'voice_url': instance.voiceUrl,
'presigned_url': instance.presignedUrl,
};