Map<String, dynamic> toJson() { final scope = this.scope; final topicArn = this.topicArn; return { 'Scope': scope.toValue(), if (topicArn != null) 'TopicArn': topicArn, }; }