PubSub.fromJson constructor

PubSub.fromJson(
  1. Map json_
)

Implementation

PubSub.fromJson(core.Map json_)
  : this(
      attributes: (json_['attributes']
              as core.Map<core.String, core.dynamic>?)
          ?.map((key, value) => core.MapEntry(key, value as core.String)),
      configVariables:
          (json_['configVariables'] as core.List?)
              ?.map(
                (value) => ConfigVariable.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      projectId: json_['projectId'] as core.String?,
      topicId: json_['topicId'] as core.String?,
    );