NotificationConfig.fromJson constructor

NotificationConfig.fromJson(
  1. Map json_
)

Implementation

NotificationConfig.fromJson(core.Map json_)
    : this(
        eventTypes: json_.containsKey('eventTypes')
            ? (json_['eventTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        payloadFormat: json_.containsKey('payloadFormat')
            ? json_['payloadFormat'] as core.String
            : null,
        pubsubTopic: json_.containsKey('pubsubTopic')
            ? json_['pubsubTopic'] as core.String
            : null,
      );