PullResponse.fromJson constructor

PullResponse.fromJson(
  1. Map json_
)

Implementation

PullResponse.fromJson(core.Map json_)
    : this(
        receivedMessages: json_.containsKey('receivedMessages')
            ? (json_['receivedMessages'] as core.List)
                .map((value) => ReceivedMessage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );