// 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 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 _$VoiceDtoToJson(VoiceDto instance) => { 'id': instance.id, 'phrase': instance.phrase, 'path': instance.path, 'speaker': instance.speaker, 'url': instance.url, 'voice_url': instance.voiceUrl, 'presigned_url': instance.presignedUrl, };