MessageEmbedAssets.fromJson constructor
MessageEmbedAssets.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MessageEmbedAssets.fromJson(Map<String, dynamic> json) {
return MessageEmbedAssets(
image: Helper.createOrNull(
field: json['image'],
fn: () => MessageEmbedImage.fromJson(json['image'])),
thumbnail: Helper.createOrNull(
field: json['thumbnail'],
fn: () => MessageEmbedImage.fromJson(json['thumbnail'])),
video: Helper.createOrNull(
field: json['video'],
fn: () => MessageEmbedImage.fromJson(json['video'])),
footer: Helper.createOrNull(
field: json['footer'],
fn: () => MessageEmbedFooter.fromJson(json['footer'])),
author: Helper.createOrNull(
field: json['author'],
fn: () => MessageEmbedAuthor.fromJson(json['author'])),
);
}