🐛 Fix embed
This commit is contained in:
@@ -11,8 +11,8 @@ sealed class SnEmbedLink with _$SnEmbedLink {
|
|||||||
@JsonKey(name: 'Title') required String title,
|
@JsonKey(name: 'Title') required String title,
|
||||||
@JsonKey(name: 'Description') required String? description,
|
@JsonKey(name: 'Description') required String? description,
|
||||||
@JsonKey(name: 'ImageUrl') required String? imageUrl,
|
@JsonKey(name: 'ImageUrl') required String? imageUrl,
|
||||||
@JsonKey(name: 'FaviconUrl') required String faviconUrl,
|
@JsonKey(name: 'FaviconUrl') @Default("") String faviconUrl,
|
||||||
@JsonKey(name: 'SiteName') required String siteName,
|
@JsonKey(name: 'SiteName') @Default("") String siteName,
|
||||||
@JsonKey(name: 'ContentType') required String? contentType,
|
@JsonKey(name: 'ContentType') required String? contentType,
|
||||||
@JsonKey(name: 'Author') required String? author,
|
@JsonKey(name: 'Author') required String? author,
|
||||||
@JsonKey(name: 'PublishedDate') required DateTime? publishedDate,
|
@JsonKey(name: 'PublishedDate') required DateTime? publishedDate,
|
||||||
|
@@ -212,7 +212,7 @@ return $default(_that.type,_that.url,_that.title,_that.description,_that.imageUr
|
|||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
|
|
||||||
class _SnEmbedLink implements SnEmbedLink {
|
class _SnEmbedLink implements SnEmbedLink {
|
||||||
const _SnEmbedLink({@JsonKey(name: 'Type') required this.type, @JsonKey(name: 'Url') required this.url, @JsonKey(name: 'Title') required this.title, @JsonKey(name: 'Description') required this.description, @JsonKey(name: 'ImageUrl') required this.imageUrl, @JsonKey(name: 'FaviconUrl') required this.faviconUrl, @JsonKey(name: 'SiteName') required this.siteName, @JsonKey(name: 'ContentType') required this.contentType, @JsonKey(name: 'Author') required this.author, @JsonKey(name: 'PublishedDate') required this.publishedDate});
|
const _SnEmbedLink({@JsonKey(name: 'Type') required this.type, @JsonKey(name: 'Url') required this.url, @JsonKey(name: 'Title') required this.title, @JsonKey(name: 'Description') required this.description, @JsonKey(name: 'ImageUrl') required this.imageUrl, @JsonKey(name: 'FaviconUrl') this.faviconUrl = "", @JsonKey(name: 'SiteName') this.siteName = "", @JsonKey(name: 'ContentType') required this.contentType, @JsonKey(name: 'Author') required this.author, @JsonKey(name: 'PublishedDate') required this.publishedDate});
|
||||||
factory _SnEmbedLink.fromJson(Map<String, dynamic> json) => _$SnEmbedLinkFromJson(json);
|
factory _SnEmbedLink.fromJson(Map<String, dynamic> json) => _$SnEmbedLinkFromJson(json);
|
||||||
|
|
||||||
@override@JsonKey(name: 'Type') final String type;
|
@override@JsonKey(name: 'Type') final String type;
|
||||||
|
@@ -12,8 +12,8 @@ _SnEmbedLink _$SnEmbedLinkFromJson(Map<String, dynamic> json) => _SnEmbedLink(
|
|||||||
title: json['Title'] as String,
|
title: json['Title'] as String,
|
||||||
description: json['Description'] as String?,
|
description: json['Description'] as String?,
|
||||||
imageUrl: json['ImageUrl'] as String?,
|
imageUrl: json['ImageUrl'] as String?,
|
||||||
faviconUrl: json['FaviconUrl'] as String,
|
faviconUrl: json['FaviconUrl'] as String? ?? "",
|
||||||
siteName: json['SiteName'] as String,
|
siteName: json['SiteName'] as String? ?? "",
|
||||||
contentType: json['ContentType'] as String?,
|
contentType: json['ContentType'] as String?,
|
||||||
author: json['Author'] as String?,
|
author: json['Author'] as String?,
|
||||||
publishedDate:
|
publishedDate:
|
||||||
|
@@ -6,7 +6,7 @@ part of 'call.dart';
|
|||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$callNotifierHash() => r'e4312feadb5b34f186b5349a7ee8b671b842dafc';
|
String _$callNotifierHash() => r'a67ff053d69b2edbbb13c7c865f8adc3b77c4e86';
|
||||||
|
|
||||||
/// See also [CallNotifier].
|
/// See also [CallNotifier].
|
||||||
@ProviderFor(CallNotifier)
|
@ProviderFor(CallNotifier)
|
||||||
|
Reference in New Issue
Block a user