ActivitySnippet.fromJson constructor
ActivitySnippet.fromJson(
- Map json_
Implementation
ActivitySnippet.fromJson(core.Map json_)
: this(
channelId: json_.containsKey('channelId')
? json_['channelId'] as core.String
: null,
channelTitle: json_.containsKey('channelTitle')
? json_['channelTitle'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
groupId: json_.containsKey('groupId')
? json_['groupId'] as core.String
: null,
publishedAt: json_.containsKey('publishedAt')
? core.DateTime.parse(json_['publishedAt'] as core.String)
: null,
thumbnails: json_.containsKey('thumbnails')
? ThumbnailDetails.fromJson(
json_['thumbnails'] as core.Map<core.String, core.dynamic>)
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);