forked from eatvio/eatvio_app
feature(registration): remove .env
This commit is contained in:
@@ -18,6 +18,5 @@ class BlogPostModel with _$BlogPostModel {
|
||||
required String title,
|
||||
}) = _BlogPostModel;
|
||||
|
||||
factory BlogPostModel.fromJson(Map<String, Object?> json) =>
|
||||
_$BlogPostModelFromJson(json);
|
||||
factory BlogPostModel.fromJson(Map<String, Object?> json) => _$BlogPostModelFromJson(json);
|
||||
}
|
||||
|
||||
@@ -36,15 +36,12 @@ mixin _$BlogPostModel {
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$BlogPostModelCopyWith<BlogPostModel> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
$BlogPostModelCopyWith<BlogPostModel> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $BlogPostModelCopyWith<$Res> {
|
||||
factory $BlogPostModelCopyWith(
|
||||
BlogPostModel value, $Res Function(BlogPostModel) then) =
|
||||
_$BlogPostModelCopyWithImpl<$Res, BlogPostModel>;
|
||||
factory $BlogPostModelCopyWith(BlogPostModel value, $Res Function(BlogPostModel) then) = _$BlogPostModelCopyWithImpl<$Res, BlogPostModel>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{int id,
|
||||
@@ -60,8 +57,7 @@ abstract class $BlogPostModelCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$BlogPostModelCopyWithImpl<$Res, $Val extends BlogPostModel>
|
||||
implements $BlogPostModelCopyWith<$Res> {
|
||||
class _$BlogPostModelCopyWithImpl<$Res, $Val extends BlogPostModel> implements $BlogPostModelCopyWith<$Res> {
|
||||
_$BlogPostModelCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
@@ -129,11 +125,8 @@ class _$BlogPostModelCopyWithImpl<$Res, $Val extends BlogPostModel>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$BlogPostModelImplCopyWith<$Res>
|
||||
implements $BlogPostModelCopyWith<$Res> {
|
||||
factory _$$BlogPostModelImplCopyWith(
|
||||
_$BlogPostModelImpl value, $Res Function(_$BlogPostModelImpl) then) =
|
||||
__$$BlogPostModelImplCopyWithImpl<$Res>;
|
||||
abstract class _$$BlogPostModelImplCopyWith<$Res> implements $BlogPostModelCopyWith<$Res> {
|
||||
factory _$$BlogPostModelImplCopyWith(_$BlogPostModelImpl value, $Res Function(_$BlogPostModelImpl) then) = __$$BlogPostModelImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -150,12 +143,8 @@ abstract class _$$BlogPostModelImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$BlogPostModelImplCopyWithImpl<$Res>
|
||||
extends _$BlogPostModelCopyWithImpl<$Res, _$BlogPostModelImpl>
|
||||
implements _$$BlogPostModelImplCopyWith<$Res> {
|
||||
__$$BlogPostModelImplCopyWithImpl(
|
||||
_$BlogPostModelImpl _value, $Res Function(_$BlogPostModelImpl) _then)
|
||||
: super(_value, _then);
|
||||
class __$$BlogPostModelImplCopyWithImpl<$Res> extends _$BlogPostModelCopyWithImpl<$Res, _$BlogPostModelImpl> implements _$$BlogPostModelImplCopyWith<$Res> {
|
||||
__$$BlogPostModelImplCopyWithImpl(_$BlogPostModelImpl _value, $Res Function(_$BlogPostModelImpl) _then) : super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
@@ -231,8 +220,7 @@ class _$BlogPostModelImpl implements _BlogPostModel {
|
||||
@JsonKey(name: "updated_at") required this.updatedAt,
|
||||
required this.title});
|
||||
|
||||
factory _$BlogPostModelImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$BlogPostModelImplFromJson(json);
|
||||
factory _$BlogPostModelImpl.fromJson(Map<String, dynamic> json) => _$$BlogPostModelImplFromJson(json);
|
||||
|
||||
@override
|
||||
final int id;
|
||||
@@ -271,31 +259,23 @@ class _$BlogPostModelImpl implements _BlogPostModel {
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.state, state) || other.state == state) &&
|
||||
(identical(other.image, image) || other.image == image) &&
|
||||
(identical(other.description, description) ||
|
||||
other.description == description) &&
|
||||
(identical(other.author_name, author_name) ||
|
||||
other.author_name == author_name) &&
|
||||
(identical(other.author_avatar_path, author_avatar_path) ||
|
||||
other.author_avatar_path == author_avatar_path) &&
|
||||
(identical(other.youtubeUrl, youtubeUrl) ||
|
||||
other.youtubeUrl == youtubeUrl) &&
|
||||
(identical(other.createdAt, createdAt) ||
|
||||
other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) ||
|
||||
other.updatedAt == updatedAt) &&
|
||||
(identical(other.description, description) || other.description == description) &&
|
||||
(identical(other.author_name, author_name) || other.author_name == author_name) &&
|
||||
(identical(other.author_avatar_path, author_avatar_path) || other.author_avatar_path == author_avatar_path) &&
|
||||
(identical(other.youtubeUrl, youtubeUrl) || other.youtubeUrl == youtubeUrl) &&
|
||||
(identical(other.createdAt, createdAt) || other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt) &&
|
||||
(identical(other.title, title) || other.title == title));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id, state, image, description,
|
||||
author_name, author_avatar_path, youtubeUrl, createdAt, updatedAt, title);
|
||||
int get hashCode => Object.hash(runtimeType, id, state, image, description, author_name, author_avatar_path, youtubeUrl, createdAt, updatedAt, title);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$BlogPostModelImplCopyWith<_$BlogPostModelImpl> get copyWith =>
|
||||
__$$BlogPostModelImplCopyWithImpl<_$BlogPostModelImpl>(this, _$identity);
|
||||
_$$BlogPostModelImplCopyWith<_$BlogPostModelImpl> get copyWith => __$$BlogPostModelImplCopyWithImpl<_$BlogPostModelImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -318,8 +298,7 @@ abstract class _BlogPostModel implements BlogPostModel {
|
||||
@JsonKey(name: "updated_at") required final DateTime updatedAt,
|
||||
required final String title}) = _$BlogPostModelImpl;
|
||||
|
||||
factory _BlogPostModel.fromJson(Map<String, dynamic> json) =
|
||||
_$BlogPostModelImpl.fromJson;
|
||||
factory _BlogPostModel.fromJson(Map<String, dynamic> json) = _$BlogPostModelImpl.fromJson;
|
||||
|
||||
@override
|
||||
int get id;
|
||||
@@ -346,6 +325,5 @@ abstract class _BlogPostModel implements BlogPostModel {
|
||||
String get title;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$BlogPostModelImplCopyWith<_$BlogPostModelImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
_$$BlogPostModelImplCopyWith<_$BlogPostModelImpl> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@ part of 'blog_post_model.dart';
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$BlogPostModelImpl _$$BlogPostModelImplFromJson(Map<String, dynamic> json) =>
|
||||
_$BlogPostModelImpl(
|
||||
_$BlogPostModelImpl _$$BlogPostModelImplFromJson(Map<String, dynamic> json) => _$BlogPostModelImpl(
|
||||
id: (json['id'] as num).toInt(),
|
||||
state: json['state'] as String,
|
||||
image: json['image'] as String?,
|
||||
@@ -20,8 +19,7 @@ _$BlogPostModelImpl _$$BlogPostModelImplFromJson(Map<String, dynamic> json) =>
|
||||
title: json['title'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$BlogPostModelImplToJson(_$BlogPostModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
Map<String, dynamic> _$$BlogPostModelImplToJson(_$BlogPostModelImpl instance) => <String, dynamic>{
|
||||
'id': instance.id,
|
||||
'state': instance.state,
|
||||
'image': instance.image,
|
||||
|
||||
Reference in New Issue
Block a user