LiveStreamSnippet.fromJson constructor

LiveStreamSnippet.fromJson(
  1. Map json_
)

Implementation

LiveStreamSnippet.fromJson(core.Map json_)
    : this(
        channelId: json_.containsKey('channelId')
            ? json_['channelId'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        isDefaultStream: json_.containsKey('isDefaultStream')
            ? json_['isDefaultStream'] as core.bool
            : null,
        publishedAt: json_.containsKey('publishedAt')
            ? core.DateTime.parse(json_['publishedAt'] as core.String)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );