ReceivedMessage.fromJson constructor

ReceivedMessage.fromJson(
  1. Map json_
)

Implementation

ReceivedMessage.fromJson(core.Map json_)
    : this(
        ackId: json_['ackId'] as core.String?,
        deliveryAttempt: json_['deliveryAttempt'] as core.int?,
        message: json_.containsKey('message')
            ? PubsubMessage.fromJson(
                json_['message'] as core.Map<core.String, core.dynamic>)
            : null,
      );