chat has been updated

This commit is contained in:
Username1548
2025-03-18 14:33:51 +07:00
parent b6d4911c2e
commit fa817548d9
140 changed files with 16501 additions and 14065 deletions

View File

@@ -12,7 +12,8 @@ part of 'complain_model.dart';
T _$identity<T>(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');
'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',
);
ComplainModel _$ComplainModelFromJson(Map<String, dynamic> json) {
return _ComplainModel.fromJson(json);
@@ -36,8 +37,9 @@ mixin _$ComplainModel {
/// @nodoc
abstract class $ComplainModelCopyWith<$Res> {
factory $ComplainModelCopyWith(
ComplainModel value, $Res Function(ComplainModel) then) =
_$ComplainModelCopyWithImpl<$Res, ComplainModel>;
ComplainModel value,
$Res Function(ComplainModel) then,
) = _$ComplainModelCopyWithImpl<$Res, ComplainModel>;
@useResult
$Res call({String? description, List<String> tags});
}
@@ -56,20 +58,22 @@ class _$ComplainModelCopyWithImpl<$Res, $Val extends ComplainModel>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? description = freezed,
Object? tags = null,
}) {
return _then(_value.copyWith(
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
tags: null == tags
? _value.tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
) as $Val);
$Res call({Object? description = freezed, Object? tags = null}) {
return _then(
_value.copyWith(
description:
freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
tags:
null == tags
? _value.tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
)
as $Val,
);
}
}
@@ -77,8 +81,9 @@ class _$ComplainModelCopyWithImpl<$Res, $Val extends ComplainModel>
abstract class _$$ComplainModelImplCopyWith<$Res>
implements $ComplainModelCopyWith<$Res> {
factory _$$ComplainModelImplCopyWith(
_$ComplainModelImpl value, $Res Function(_$ComplainModelImpl) then) =
__$$ComplainModelImplCopyWithImpl<$Res>;
_$ComplainModelImpl value,
$Res Function(_$ComplainModelImpl) then,
) = __$$ComplainModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? description, List<String> tags});
@@ -89,36 +94,39 @@ class __$$ComplainModelImplCopyWithImpl<$Res>
extends _$ComplainModelCopyWithImpl<$Res, _$ComplainModelImpl>
implements _$$ComplainModelImplCopyWith<$Res> {
__$$ComplainModelImplCopyWithImpl(
_$ComplainModelImpl _value, $Res Function(_$ComplainModelImpl) _then)
: super(_value, _then);
_$ComplainModelImpl _value,
$Res Function(_$ComplainModelImpl) _then,
) : super(_value, _then);
/// Create a copy of ComplainModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? description = freezed,
Object? tags = null,
}) {
return _then(_$ComplainModelImpl(
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
tags: null == tags
? _value._tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
));
$Res call({Object? description = freezed, Object? tags = null}) {
return _then(
_$ComplainModelImpl(
description:
freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
tags:
null == tags
? _value._tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$ComplainModelImpl implements _ComplainModel {
const _$ComplainModelImpl(
{this.description = null, final List<String> tags = const []})
: _tags = tags;
const _$ComplainModelImpl({
this.description = null,
final List<String> tags = const [],
}) : _tags = tags;
factory _$ComplainModelImpl.fromJson(Map<String, dynamic> json) =>
_$$ComplainModelImplFromJson(json);
@@ -153,7 +161,10 @@ class _$ComplainModelImpl implements _ComplainModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, description, const DeepCollectionEquality().hash(_tags));
runtimeType,
description,
const DeepCollectionEquality().hash(_tags),
);
/// Create a copy of ComplainModel
/// with the given fields replaced by the non-null parameter values.
@@ -165,16 +176,15 @@ class _$ComplainModelImpl implements _ComplainModel {
@override
Map<String, dynamic> toJson() {
return _$$ComplainModelImplToJson(
this,
);
return _$$ComplainModelImplToJson(this);
}
}
abstract class _ComplainModel implements ComplainModel {
const factory _ComplainModel(
{final String? description,
final List<String> tags}) = _$ComplainModelImpl;
const factory _ComplainModel({
final String? description,
final List<String> tags,
}) = _$ComplainModelImpl;
factory _ComplainModel.fromJson(Map<String, dynamic> json) =
_$ComplainModelImpl.fromJson;

View File

@@ -11,7 +11,7 @@ _$ComplainModelImpl _$$ComplainModelImplFromJson(Map<String, dynamic> json) =>
description: json['description'] as String? ?? null,
tags:
(json['tags'] as List<dynamic>?)?.map((e) => e as String).toList() ??
const [],
const [],
);
Map<String, dynamic> _$$ComplainModelImplToJson(_$ComplainModelImpl instance) =>