ListSessionsResponse.fromJson constructor

ListSessionsResponse.fromJson(
  1. Map json_
)

Implementation

ListSessionsResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        sessions: json_.containsKey('sessions')
            ? (json_['sessions'] as core.List)
                .map((value) => Session.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );