PlaylistItemContentDetails.fromJson constructor

PlaylistItemContentDetails.fromJson(
  1. Map json_
)

Implementation

PlaylistItemContentDetails.fromJson(core.Map json_)
    : this(
        endAt:
            json_.containsKey('endAt') ? json_['endAt'] as core.String : null,
        note: json_.containsKey('note') ? json_['note'] as core.String : null,
        startAt: json_.containsKey('startAt')
            ? json_['startAt'] as core.String
            : null,
        videoId: json_.containsKey('videoId')
            ? json_['videoId'] as core.String
            : null,
        videoPublishedAt: json_.containsKey('videoPublishedAt')
            ? core.DateTime.parse(json_['videoPublishedAt'] as core.String)
            : null,
      );