forked from eatvio/eatvio_app
fix: youtube_url => video_url
This commit is contained in:
@@ -12,7 +12,7 @@ class FeedBlogPostModel with _$FeedBlogPostModel {
|
||||
required String image,
|
||||
required String description,
|
||||
required Author author,
|
||||
@JsonKey(name: "youtube_url") required String youtubeUrl,
|
||||
@JsonKey(name: "video_url") required String videoUrl,
|
||||
@JsonKey(name: "created_at") required DateTime createdAt,
|
||||
@JsonKey(name: "updated_at") required DateTime updatedAt,
|
||||
required String title,
|
||||
|
||||
@@ -25,8 +25,8 @@ mixin _$FeedBlogPostModel {
|
||||
String get image => throw _privateConstructorUsedError;
|
||||
String get description => throw _privateConstructorUsedError;
|
||||
Author get author => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "youtube_url")
|
||||
String get youtubeUrl => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "video_url")
|
||||
String get videoUrl => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "created_at")
|
||||
DateTime get createdAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "updated_at")
|
||||
@@ -63,7 +63,7 @@ abstract class $FeedBlogPostModelCopyWith<$Res> {
|
||||
String image,
|
||||
String description,
|
||||
Author author,
|
||||
@JsonKey(name: "youtube_url") String youtubeUrl,
|
||||
@JsonKey(name: "video_url") String videoUrl,
|
||||
@JsonKey(name: "created_at") DateTime createdAt,
|
||||
@JsonKey(name: "updated_at") DateTime updatedAt,
|
||||
String title,
|
||||
@@ -95,7 +95,7 @@ class _$FeedBlogPostModelCopyWithImpl<$Res, $Val extends FeedBlogPostModel>
|
||||
Object? image = null,
|
||||
Object? description = null,
|
||||
Object? author = null,
|
||||
Object? youtubeUrl = null,
|
||||
Object? videoUrl = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
Object? title = null,
|
||||
@@ -125,9 +125,9 @@ class _$FeedBlogPostModelCopyWithImpl<$Res, $Val extends FeedBlogPostModel>
|
||||
? _value.author
|
||||
: author // ignore: cast_nullable_to_non_nullable
|
||||
as Author,
|
||||
youtubeUrl: null == youtubeUrl
|
||||
? _value.youtubeUrl
|
||||
: youtubeUrl // ignore: cast_nullable_to_non_nullable
|
||||
videoUrl: null == videoUrl
|
||||
? _value.videoUrl
|
||||
: videoUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
@@ -185,7 +185,7 @@ abstract class _$$FeedBlogPostModelImplCopyWith<$Res>
|
||||
String image,
|
||||
String description,
|
||||
Author author,
|
||||
@JsonKey(name: "youtube_url") String youtubeUrl,
|
||||
@JsonKey(name: "video_url") String videoUrl,
|
||||
@JsonKey(name: "created_at") DateTime createdAt,
|
||||
@JsonKey(name: "updated_at") DateTime updatedAt,
|
||||
String title,
|
||||
@@ -216,7 +216,7 @@ class __$$FeedBlogPostModelImplCopyWithImpl<$Res>
|
||||
Object? image = null,
|
||||
Object? description = null,
|
||||
Object? author = null,
|
||||
Object? youtubeUrl = null,
|
||||
Object? videoUrl = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
Object? title = null,
|
||||
@@ -246,9 +246,9 @@ class __$$FeedBlogPostModelImplCopyWithImpl<$Res>
|
||||
? _value.author
|
||||
: author // ignore: cast_nullable_to_non_nullable
|
||||
as Author,
|
||||
youtubeUrl: null == youtubeUrl
|
||||
? _value.youtubeUrl
|
||||
: youtubeUrl // ignore: cast_nullable_to_non_nullable
|
||||
videoUrl: null == videoUrl
|
||||
? _value.videoUrl
|
||||
: videoUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
@@ -291,7 +291,7 @@ class _$FeedBlogPostModelImpl implements _FeedBlogPostModel {
|
||||
required this.image,
|
||||
required this.description,
|
||||
required this.author,
|
||||
@JsonKey(name: "youtube_url") required this.youtubeUrl,
|
||||
@JsonKey(name: "video_url") required this.videoUrl,
|
||||
@JsonKey(name: "created_at") required this.createdAt,
|
||||
@JsonKey(name: "updated_at") required this.updatedAt,
|
||||
required this.title,
|
||||
@@ -314,8 +314,8 @@ class _$FeedBlogPostModelImpl implements _FeedBlogPostModel {
|
||||
@override
|
||||
final Author author;
|
||||
@override
|
||||
@JsonKey(name: "youtube_url")
|
||||
final String youtubeUrl;
|
||||
@JsonKey(name: "video_url")
|
||||
final String videoUrl;
|
||||
@override
|
||||
@JsonKey(name: "created_at")
|
||||
final DateTime createdAt;
|
||||
@@ -339,7 +339,7 @@ class _$FeedBlogPostModelImpl implements _FeedBlogPostModel {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'FeedBlogPostModel(id: $id, state: $state, image: $image, description: $description, author: $author, youtubeUrl: $youtubeUrl, createdAt: $createdAt, updatedAt: $updatedAt, title: $title, totalLikes: $totalLikes, totalViews: $totalViews, totalComments: $totalComments, wasLikedByMe: $wasLikedByMe)';
|
||||
return 'FeedBlogPostModel(id: $id, state: $state, image: $image, description: $description, author: $author, videoUrl: $videoUrl, createdAt: $createdAt, updatedAt: $updatedAt, title: $title, totalLikes: $totalLikes, totalViews: $totalViews, totalComments: $totalComments, wasLikedByMe: $wasLikedByMe)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -353,8 +353,8 @@ class _$FeedBlogPostModelImpl implements _FeedBlogPostModel {
|
||||
(identical(other.description, description) ||
|
||||
other.description == description) &&
|
||||
(identical(other.author, author) || other.author == author) &&
|
||||
(identical(other.youtubeUrl, youtubeUrl) ||
|
||||
other.youtubeUrl == youtubeUrl) &&
|
||||
(identical(other.videoUrl, videoUrl) ||
|
||||
other.videoUrl == videoUrl) &&
|
||||
(identical(other.createdAt, createdAt) ||
|
||||
other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) ||
|
||||
@@ -379,7 +379,7 @@ class _$FeedBlogPostModelImpl implements _FeedBlogPostModel {
|
||||
image,
|
||||
description,
|
||||
author,
|
||||
youtubeUrl,
|
||||
videoUrl,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
title,
|
||||
@@ -412,7 +412,7 @@ abstract class _FeedBlogPostModel implements FeedBlogPostModel {
|
||||
required final String image,
|
||||
required final String description,
|
||||
required final Author author,
|
||||
@JsonKey(name: "youtube_url") required final String youtubeUrl,
|
||||
@JsonKey(name: "video_url") required final String videoUrl,
|
||||
@JsonKey(name: "created_at") required final DateTime createdAt,
|
||||
@JsonKey(name: "updated_at") required final DateTime updatedAt,
|
||||
required final String title,
|
||||
@@ -436,8 +436,8 @@ abstract class _FeedBlogPostModel implements FeedBlogPostModel {
|
||||
@override
|
||||
Author get author;
|
||||
@override
|
||||
@JsonKey(name: "youtube_url")
|
||||
String get youtubeUrl;
|
||||
@JsonKey(name: "video_url")
|
||||
String get videoUrl;
|
||||
@override
|
||||
@JsonKey(name: "created_at")
|
||||
DateTime get createdAt;
|
||||
|
||||
@@ -14,7 +14,7 @@ _$FeedBlogPostModelImpl _$$FeedBlogPostModelImplFromJson(
|
||||
image: json['image'] as String,
|
||||
description: json['description'] as String,
|
||||
author: Author.fromJson(json['author'] as Map<String, dynamic>),
|
||||
youtubeUrl: json['youtube_url'] as String,
|
||||
videoUrl: json['video_url'] as String,
|
||||
createdAt: DateTime.parse(json['created_at'] as String),
|
||||
updatedAt: DateTime.parse(json['updated_at'] as String),
|
||||
title: json['title'] as String,
|
||||
@@ -32,7 +32,7 @@ Map<String, dynamic> _$$FeedBlogPostModelImplToJson(
|
||||
'image': instance.image,
|
||||
'description': instance.description,
|
||||
'author': instance.author,
|
||||
'youtube_url': instance.youtubeUrl,
|
||||
'video_url': instance.videoUrl,
|
||||
'created_at': instance.createdAt.toIso8601String(),
|
||||
'updated_at': instance.updatedAt.toIso8601String(),
|
||||
'title': instance.title,
|
||||
|
||||
Reference in New Issue
Block a user