ResourceId.fromJson constructor

ResourceId.fromJson(
  1. Map json_
)

Implementation

ResourceId.fromJson(core.Map json_)
    : this(
        channelId: json_.containsKey('channelId')
            ? json_['channelId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        playlistId: json_.containsKey('playlistId')
            ? json_['playlistId'] as core.String
            : null,
        videoId: json_.containsKey('videoId')
            ? json_['videoId'] as core.String
            : null,
      );