ReceivedMessage.fromJson constructor

ReceivedMessage.fromJson(
  1. Map json_
)

Implementation

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