Map<String, dynamic> toJson() { final resourceArn = this.resourceArn; final catalogId = this.catalogId; return { 'ResourceArn': resourceArn, if (catalogId != null) 'CatalogId': catalogId, }; }