PublishRequest.fromJson constructor

PublishRequest.fromJson(
  1. Map json_
)

Implementation

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