PubsubLocation.fromJson constructor

PubsubLocation.fromJson(
  1. Map _json
)

Implementation

PubsubLocation.fromJson(core.Map _json)
    : this(
        dropLateData: _json.containsKey('dropLateData')
            ? _json['dropLateData'] as core.bool
            : null,
        idLabel: _json.containsKey('idLabel')
            ? _json['idLabel'] as core.String
            : null,
        subscription: _json.containsKey('subscription')
            ? _json['subscription'] as core.String
            : null,
        timestampLabel: _json.containsKey('timestampLabel')
            ? _json['timestampLabel'] as core.String
            : null,
        topic:
            _json.containsKey('topic') ? _json['topic'] as core.String : null,
        trackingSubscription: _json.containsKey('trackingSubscription')
            ? _json['trackingSubscription'] as core.String
            : null,
        withAttributes: _json.containsKey('withAttributes')
            ? _json['withAttributes'] as core.bool
            : null,
      );