ListMessagesResponse.fromJson constructor

ListMessagesResponse.fromJson(
  1. Map json_
)

Implementation

ListMessagesResponse.fromJson(core.Map json_)
    : this(
        messages: json_.containsKey('messages')
            ? (json_['messages'] as core.List)
                .map((value) => Message.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        resultSizeEstimate: json_.containsKey('resultSizeEstimate')
            ? json_['resultSizeEstimate'] as core.int
            : null,
      );