$PubsubMessage.fromJson constructor

$PubsubMessage.fromJson(
  1. Map json_
)

Implementation

$PubsubMessage.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        data: json_.containsKey('data') ? json_['data'] as core.String : null,
        messageId: json_.containsKey('messageId')
            ? json_['messageId'] as core.String
            : null,
        orderingKey: json_.containsKey('orderingKey')
            ? json_['orderingKey'] as core.String
            : null,
        publishTime: json_.containsKey('publishTime')
            ? json_['publishTime'] as core.String
            : null,
      );