ListSnoozesResponse.fromJson constructor

ListSnoozesResponse.fromJson(
  1. Map json_
)

Implementation

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