core.Map<core.String, core.dynamic> toJson() => { if (permission != null) 'permission': permission!, if (productId != null) 'productId': productId!, };