forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -12,8 +12,7 @@ part of 'location_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');
|
||||
|
||||
LocationModel _$LocationModelFromJson(Map<String, dynamic> json) {
|
||||
return _LocationModel.fromJson(json);
|
||||
@@ -38,14 +37,12 @@ mixin _$LocationModel {
|
||||
/// @nodoc
|
||||
abstract class $LocationModelCopyWith<$Res> {
|
||||
factory $LocationModelCopyWith(
|
||||
LocationModel value,
|
||||
$Res Function(LocationModel) then,
|
||||
) = _$LocationModelCopyWithImpl<$Res, LocationModel>;
|
||||
LocationModel value, $Res Function(LocationModel) then) =
|
||||
_$LocationModelCopyWithImpl<$Res, LocationModel>;
|
||||
@useResult
|
||||
$Res call({
|
||||
List<String> locations,
|
||||
@JsonKey(name: 'response_body') String responseBody,
|
||||
});
|
||||
$Res call(
|
||||
{List<String> locations,
|
||||
@JsonKey(name: 'response_body') String responseBody});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -62,22 +59,20 @@ class _$LocationModelCopyWithImpl<$Res, $Val extends LocationModel>
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? locations = null, Object? responseBody = null}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
locations:
|
||||
null == locations
|
||||
? _value.locations
|
||||
: locations // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
responseBody:
|
||||
null == responseBody
|
||||
? _value.responseBody
|
||||
: responseBody // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
$Res call({
|
||||
Object? locations = null,
|
||||
Object? responseBody = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
locations: null == locations
|
||||
? _value.locations
|
||||
: locations // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
responseBody: null == responseBody
|
||||
? _value.responseBody
|
||||
: responseBody // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,15 +80,13 @@ class _$LocationModelCopyWithImpl<$Res, $Val extends LocationModel>
|
||||
abstract class _$$LocationModelImplCopyWith<$Res>
|
||||
implements $LocationModelCopyWith<$Res> {
|
||||
factory _$$LocationModelImplCopyWith(
|
||||
_$LocationModelImpl value,
|
||||
$Res Function(_$LocationModelImpl) then,
|
||||
) = __$$LocationModelImplCopyWithImpl<$Res>;
|
||||
_$LocationModelImpl value, $Res Function(_$LocationModelImpl) then) =
|
||||
__$$LocationModelImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
List<String> locations,
|
||||
@JsonKey(name: 'response_body') String responseBody,
|
||||
});
|
||||
$Res call(
|
||||
{List<String> locations,
|
||||
@JsonKey(name: 'response_body') String responseBody});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -101,39 +94,37 @@ class __$$LocationModelImplCopyWithImpl<$Res>
|
||||
extends _$LocationModelCopyWithImpl<$Res, _$LocationModelImpl>
|
||||
implements _$$LocationModelImplCopyWith<$Res> {
|
||||
__$$LocationModelImplCopyWithImpl(
|
||||
_$LocationModelImpl _value,
|
||||
$Res Function(_$LocationModelImpl) _then,
|
||||
) : super(_value, _then);
|
||||
_$LocationModelImpl _value, $Res Function(_$LocationModelImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of LocationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? locations = null, Object? responseBody = null}) {
|
||||
return _then(
|
||||
_$LocationModelImpl(
|
||||
locations:
|
||||
null == locations
|
||||
? _value._locations
|
||||
: locations // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
responseBody:
|
||||
null == responseBody
|
||||
? _value.responseBody
|
||||
: responseBody // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
),
|
||||
);
|
||||
$Res call({
|
||||
Object? locations = null,
|
||||
Object? responseBody = null,
|
||||
}) {
|
||||
return _then(_$LocationModelImpl(
|
||||
locations: null == locations
|
||||
? _value._locations
|
||||
: locations // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
responseBody: null == responseBody
|
||||
? _value.responseBody
|
||||
: responseBody // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$LocationModelImpl implements _LocationModel {
|
||||
const _$LocationModelImpl({
|
||||
required final List<String> locations,
|
||||
@JsonKey(name: 'response_body') required this.responseBody,
|
||||
}) : _locations = locations;
|
||||
const _$LocationModelImpl(
|
||||
{required final List<String> locations,
|
||||
@JsonKey(name: 'response_body') required this.responseBody})
|
||||
: _locations = locations;
|
||||
|
||||
factory _$LocationModelImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$LocationModelImplFromJson(json);
|
||||
@@ -160,21 +151,16 @@ class _$LocationModelImpl implements _LocationModel {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$LocationModelImpl &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other._locations,
|
||||
_locations,
|
||||
) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._locations, _locations) &&
|
||||
(identical(other.responseBody, responseBody) ||
|
||||
other.responseBody == responseBody));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(_locations),
|
||||
responseBody,
|
||||
);
|
||||
int get hashCode => Object.hash(runtimeType,
|
||||
const DeepCollectionEquality().hash(_locations), responseBody);
|
||||
|
||||
/// Create a copy of LocationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -186,15 +172,17 @@ class _$LocationModelImpl implements _LocationModel {
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$LocationModelImplToJson(this);
|
||||
return _$$LocationModelImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _LocationModel implements LocationModel {
|
||||
const factory _LocationModel({
|
||||
required final List<String> locations,
|
||||
@JsonKey(name: 'response_body') required final String responseBody,
|
||||
}) = _$LocationModelImpl;
|
||||
const factory _LocationModel(
|
||||
{required final List<String> locations,
|
||||
@JsonKey(name: 'response_body') required final String responseBody}) =
|
||||
_$LocationModelImpl;
|
||||
|
||||
factory _LocationModel.fromJson(Map<String, dynamic> json) =
|
||||
_$LocationModelImpl.fromJson;
|
||||
|
||||
Reference in New Issue
Block a user