Subscription.fromJson constructor

Subscription.fromJson(
  1. Map json_
)

Implementation

Subscription.fromJson(core.Map json_)
    : this(
        ackDeadlineSeconds: json_.containsKey('ackDeadlineSeconds')
            ? json_['ackDeadlineSeconds'] as core.int
            : null,
        bigqueryConfig: json_.containsKey('bigqueryConfig')
            ? BigQueryConfig.fromJson(json_['bigqueryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        cloudStorageConfig: json_.containsKey('cloudStorageConfig')
            ? CloudStorageConfig.fromJson(json_['cloudStorageConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        deadLetterPolicy: json_.containsKey('deadLetterPolicy')
            ? DeadLetterPolicy.fromJson(json_['deadLetterPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        detached: json_.containsKey('detached')
            ? json_['detached'] as core.bool
            : null,
        enableExactlyOnceDelivery:
            json_.containsKey('enableExactlyOnceDelivery')
                ? json_['enableExactlyOnceDelivery'] as core.bool
                : null,
        enableMessageOrdering: json_.containsKey('enableMessageOrdering')
            ? json_['enableMessageOrdering'] as core.bool
            : null,
        expirationPolicy: json_.containsKey('expirationPolicy')
            ? ExpirationPolicy.fromJson(json_['expirationPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        messageRetentionDuration:
            json_.containsKey('messageRetentionDuration')
                ? json_['messageRetentionDuration'] as core.String
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pushConfig: json_.containsKey('pushConfig')
            ? PushConfig.fromJson(
                json_['pushConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        retainAckedMessages: json_.containsKey('retainAckedMessages')
            ? json_['retainAckedMessages'] as core.bool
            : null,
        retryPolicy: json_.containsKey('retryPolicy')
            ? RetryPolicy.fromJson(
                json_['retryPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        topic:
            json_.containsKey('topic') ? json_['topic'] as core.String : null,
        topicMessageRetentionDuration:
            json_.containsKey('topicMessageRetentionDuration')
                ? json_['topicMessageRetentionDuration'] as core.String
                : null,
      );