getMap method

  1. @override
Map<String, String> getMap(
  1. String key
)
override

Implementation

@override
Map<String, String> getMap(String key) => {
      ...super.getMap(key),
      QueryParameter.part.name: parts.map((part) => part.name).join(','),
      if (forContentOwner != null)
        QueryParameter.forContentOwner.name: "$forContentOwner",
      if (forDeveloper != null)
        QueryParameter.forDeveloper.name: "$forDeveloper",
      if (forMine != null) QueryParameter.forMine.name: "$forMine",
      if (channelId != null) QueryParameter.channelId.name: channelId!,
      if (channelType != null)
        QueryParameter.channelType.name: channelType!.name,
      if (eventType != null) QueryParameter.eventType.name: eventType!.name,
      if (location != null) QueryParameter.location.name: location!,
      if (locationRadius != null)
        QueryParameter.locationRadius.name: locationRadius!,
      if (order != null) QueryParameter.order.name: order!.name,
      if (publishedAfter != null)
        QueryParameter.publishedAfter.name:
            publishedAfter!.toUtc().toIso8601String(),
      if (publishedBefore != null)
        QueryParameter.publishedBefore.name:
            publishedBefore!.toUtc().toIso8601String(),
      if (query != null) QueryParameter.q.name: query!,
      if (relevanceLanguage != null)
        QueryParameter.q.name: relevanceLanguage!,
      if (safeSearch != null)
        QueryParameter.safeSearch.name: safeSearch!.name,
      if (topic != null) QueryParameter.topicId.name: topic!.id,
      if (type != null)
        QueryParameter.type.name: type!.map((e) => e.name).join(','),
      if (videoCaption != null)
        QueryParameter.videoCaption.name: videoCaption!.name,
      if (category != null)
        QueryParameter.videoCategoryId.name: "${category!.categoryId}",
      if (videoDefinition != null)
        QueryParameter.videoDefinition.name: videoDefinition!.name,
      if (videoDimension != null)
        QueryParameter.videoDimension.name: videoDimension!.name,
      if (videoDuration != null)
        QueryParameter.videoDuration.name: videoDuration!.name,
      if (videoEmbeddable != null)
        QueryParameter.videoEmbeddable.name: videoEmbeddable!.name,
      if (videoLicense != null)
        QueryParameter.videoLicense.name: videoLicense!.name,
      if (videoSyndicated != null)
        QueryParameter.videoSyndicated.name: videoSyndicated!.name,
      if (videoType != null) QueryParameter.videoType.name: videoType!.name,
    };