Snippet.fromJson constructor
Snippet.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Snippet.fromJson(Map<String, dynamic> json) => Snippet(
title: json['title'] as String?,
description: json['description'] as String?,
customUrl: json['customUrl'] as String?,
publishedAt: json['publishedAt'] as String?,
thumbnails: json['thumbnails'] == null
? null
: Thumbnails.fromJson(json['thumbnails'] as Map<String, dynamic>),
localized: json['localized'] == null
? null
: Localized.fromJson(json['localized'] as Map<String, dynamic>),
country: json['country'] as String?,
);