SearchUserActivityRequest.fromJson constructor

SearchUserActivityRequest.fromJson(
  1. Map json_
)

Implementation

SearchUserActivityRequest.fromJson(core.Map json_)
    : this(
        activityTypes: json_.containsKey('activityTypes')
            ? (json_['activityTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dateRange: json_.containsKey('dateRange')
            ? DateRange.fromJson(
                json_['dateRange'] as core.Map<core.String, core.dynamic>)
            : null,
        pageSize: json_.containsKey('pageSize')
            ? json_['pageSize'] as core.int
            : null,
        pageToken: json_.containsKey('pageToken')
            ? json_['pageToken'] as core.String
            : null,
        user: json_.containsKey('user')
            ? User.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
        viewId: json_.containsKey('viewId')
            ? json_['viewId'] as core.String
            : null,
      );