// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint // 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 'printer_dtos.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models', ); PrinterDto _$PrinterDtoFromJson(Map json) { return _PrinterDto.fromJson(json); } /// @nodoc mixin _$PrinterDto { @JsonKey(name: 'id') int get id => throw _privateConstructorUsedError; @JsonKey(name: 'code') String get code => throw _privateConstructorUsedError; @JsonKey(name: 'name') String get name => throw _privateConstructorUsedError; @JsonKey(name: 'address') String get address => throw _privateConstructorUsedError; @JsonKey(name: 'paper') String get paper => throw _privateConstructorUsedError; @JsonKey(name: 'type') String get type => throw _privateConstructorUsedError; @JsonKey(name: 'created_at') DateTime get createdAt => throw _privateConstructorUsedError; @JsonKey(name: 'updated_at') DateTime get updatedAt => throw _privateConstructorUsedError; /// Serializes this PrinterDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of PrinterDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PrinterDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PrinterDtoCopyWith<$Res> { factory $PrinterDtoCopyWith( PrinterDto value, $Res Function(PrinterDto) then, ) = _$PrinterDtoCopyWithImpl<$Res, PrinterDto>; @useResult $Res call({ @JsonKey(name: 'id') int id, @JsonKey(name: 'code') String code, @JsonKey(name: 'name') String name, @JsonKey(name: 'address') String address, @JsonKey(name: 'paper') String paper, @JsonKey(name: 'type') String type, @JsonKey(name: 'created_at') DateTime createdAt, @JsonKey(name: 'updated_at') DateTime updatedAt, }); } /// @nodoc class _$PrinterDtoCopyWithImpl<$Res, $Val extends PrinterDto> implements $PrinterDtoCopyWith<$Res> { _$PrinterDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PrinterDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? code = null, Object? name = null, Object? address = null, Object? paper = null, Object? type = null, Object? createdAt = null, Object? updatedAt = null, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable as String, paper: null == paper ? _value.paper : paper // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime, ) as $Val, ); } } /// @nodoc abstract class _$$PrinterDtoImplCopyWith<$Res> implements $PrinterDtoCopyWith<$Res> { factory _$$PrinterDtoImplCopyWith( _$PrinterDtoImpl value, $Res Function(_$PrinterDtoImpl) then, ) = __$$PrinterDtoImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: 'id') int id, @JsonKey(name: 'code') String code, @JsonKey(name: 'name') String name, @JsonKey(name: 'address') String address, @JsonKey(name: 'paper') String paper, @JsonKey(name: 'type') String type, @JsonKey(name: 'created_at') DateTime createdAt, @JsonKey(name: 'updated_at') DateTime updatedAt, }); } /// @nodoc class __$$PrinterDtoImplCopyWithImpl<$Res> extends _$PrinterDtoCopyWithImpl<$Res, _$PrinterDtoImpl> implements _$$PrinterDtoImplCopyWith<$Res> { __$$PrinterDtoImplCopyWithImpl( _$PrinterDtoImpl _value, $Res Function(_$PrinterDtoImpl) _then, ) : super(_value, _then); /// Create a copy of PrinterDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? code = null, Object? name = null, Object? address = null, Object? paper = null, Object? type = null, Object? createdAt = null, Object? updatedAt = null, }) { return _then( _$PrinterDtoImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable as String, paper: null == paper ? _value.paper : paper // ignore: cast_nullable_to_non_nullable as String, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime, ), ); } } /// @nodoc @JsonSerializable() class _$PrinterDtoImpl extends _PrinterDto { const _$PrinterDtoImpl({ @JsonKey(name: 'id') required this.id, @JsonKey(name: 'code') required this.code, @JsonKey(name: 'name') required this.name, @JsonKey(name: 'address') required this.address, @JsonKey(name: 'paper') required this.paper, @JsonKey(name: 'type') required this.type, @JsonKey(name: 'created_at') required this.createdAt, @JsonKey(name: 'updated_at') required this.updatedAt, }) : super._(); factory _$PrinterDtoImpl.fromJson(Map json) => _$$PrinterDtoImplFromJson(json); @override @JsonKey(name: 'id') final int id; @override @JsonKey(name: 'code') final String code; @override @JsonKey(name: 'name') final String name; @override @JsonKey(name: 'address') final String address; @override @JsonKey(name: 'paper') final String paper; @override @JsonKey(name: 'type') final String type; @override @JsonKey(name: 'created_at') final DateTime createdAt; @override @JsonKey(name: 'updated_at') final DateTime updatedAt; @override String toString() { return 'PrinterDto(id: $id, code: $code, name: $name, address: $address, paper: $paper, type: $type, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PrinterDtoImpl && (identical(other.id, id) || other.id == id) && (identical(other.code, code) || other.code == code) && (identical(other.name, name) || other.name == name) && (identical(other.address, address) || other.address == address) && (identical(other.paper, paper) || other.paper == paper) && (identical(other.type, type) || other.type == type) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, code, name, address, paper, type, createdAt, updatedAt, ); /// Create a copy of PrinterDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PrinterDtoImplCopyWith<_$PrinterDtoImpl> get copyWith => __$$PrinterDtoImplCopyWithImpl<_$PrinterDtoImpl>(this, _$identity); @override Map toJson() { return _$$PrinterDtoImplToJson(this); } } abstract class _PrinterDto extends PrinterDto { const factory _PrinterDto({ @JsonKey(name: 'id') required final int id, @JsonKey(name: 'code') required final String code, @JsonKey(name: 'name') required final String name, @JsonKey(name: 'address') required final String address, @JsonKey(name: 'paper') required final String paper, @JsonKey(name: 'type') required final String type, @JsonKey(name: 'created_at') required final DateTime createdAt, @JsonKey(name: 'updated_at') required final DateTime updatedAt, }) = _$PrinterDtoImpl; const _PrinterDto._() : super._(); factory _PrinterDto.fromJson(Map json) = _$PrinterDtoImpl.fromJson; @override @JsonKey(name: 'id') int get id; @override @JsonKey(name: 'code') String get code; @override @JsonKey(name: 'name') String get name; @override @JsonKey(name: 'address') String get address; @override @JsonKey(name: 'paper') String get paper; @override @JsonKey(name: 'type') String get type; @override @JsonKey(name: 'created_at') DateTime get createdAt; @override @JsonKey(name: 'updated_at') DateTime get updatedAt; /// Create a copy of PrinterDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PrinterDtoImplCopyWith<_$PrinterDtoImpl> get copyWith => throw _privateConstructorUsedError; }