toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (disableDefaultIamRecipients != null)
        'disableDefaultIamRecipients': disableDefaultIamRecipients!,
      if (monitoringNotificationChannels != null)
        'monitoringNotificationChannels': monitoringNotificationChannels!,
      if (pubsubTopic != null) 'pubsubTopic': pubsubTopic!,
      if (schemaVersion != null) 'schemaVersion': schemaVersion!,
    };