SearchUserActivityResponse.fromJson constructor

SearchUserActivityResponse.fromJson(
  1. Map json_
)

Implementation

SearchUserActivityResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        sampleRate: json_.containsKey('sampleRate')
            ? (json_['sampleRate'] as core.num).toDouble()
            : null,
        sessions: json_.containsKey('sessions')
            ? (json_['sessions'] as core.List)
                .map((value) => UserActivitySession.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totalRows: json_.containsKey('totalRows')
            ? json_['totalRows'] as core.int
            : null,
      );