WatchRequest.fromJson constructor

WatchRequest.fromJson(
  1. Map json_
)

Implementation

WatchRequest.fromJson(core.Map json_)
    : this(
        labelFilterAction: json_.containsKey('labelFilterAction')
            ? json_['labelFilterAction'] as core.String
            : null,
        labelFilterBehavior: json_.containsKey('labelFilterBehavior')
            ? json_['labelFilterBehavior'] as core.String
            : null,
        labelIds: json_.containsKey('labelIds')
            ? (json_['labelIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        topicName: json_.containsKey('topicName')
            ? json_['topicName'] as core.String
            : null,
      );